patch to fix pgadmin1.8.4 build on Solaris 10.

Поиск
Список
Период
Сортировка
От Mayuresh Nirhali
Тема patch to fix pgadmin1.8.4 build on Solaris 10.
Дата
Msg-id 4874A417.3030208@Sun.COM
обсуждение исходный текст
Ответы Re: patch to fix pgadmin1.8.4 build on Solaris 10.  ("Dave Page" <dpage@pgadmin.org>)
Список pgadmin-hackers
Hello,

While building pgadmin 1.8.4 on Solaris 10, I encountered following error.

"./debugger/dbgPgConn.cpp", line 97: Error: INADDR_NONE is not defined.
gmake[2]: *** [dbgPgConn.o] Error 1

This seems to be a known problem with Solaris10.
I prepared a patch based on how the same issue is worked around in
'pgadmin/db/pgConn.cpp' and it is attached here.

please feel free to comment/review the same.

cheers
Mayuresh

Index: pgadmin/debugger/dbgPgConn.cpp
===================================================================
--- pgadmin/debugger/dbgPgConn.cpp    (revision 7390)
+++ pgadmin/debugger/dbgPgConn.cpp    (working copy)
@@ -26,8 +26,13 @@
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <netinet/in.h>
+
+#ifndef INADDR_NONE
+#define INADDR_NONE (-1)
 #endif

+#endif
+
 ////////////////////////////////////////////////////////////////////////////////
 // dbgPgConn constructors
 //

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: Enabling SQL text field in the SQL tab of object dialog
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: patch to fix pgadmin1.8.4 build on Solaris 10.