Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Pgadmin Hackers > patch to fix pg...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 4682 of 4873
Post > Topic >>

patch to fix pgadmin1.8.4 build on Solaris 10.

by Mayuresh.Nirhali@[EMAIL PROTECTED] (Mayuresh Nirhali) Jul 9, 2008 at 05:12 PM

This is a multi-part message in MIME format.

--Boundary_(ID_0YvmnLbQPk4RWyrr7qY5nA)
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT

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


--Boundary_(ID_0YvmnLbQPk4RWyrr7qY5nA)
Content-type: text/x-patch; name=ipaddrnone_solaris.diff
Content-transfer-encoding: 7BIT
Content-disposition: inline; filename=ipaddrnone_solaris.diff

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

////////////////////////////////////////////////////////////////////////////////
 // dbgPgConn constructors
 //

--Boundary_(ID_0YvmnLbQPk4RWyrr7qY5nA)
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


-- 
Sent via pgadmin-hackers mailing list (pgadmin-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

--Boundary_(ID_0YvmnLbQPk4RWyrr7qY5nA)--
 




 5 Posts in Topic:
patch to fix pgadmin1.8.4 build on Solaris 10.
Mayuresh.Nirhali@[EMAIL P  2008-07-09 17:12:15 
Re: patch to fix pgadmin1.8.4 build on Solaris 10.
dpage@[EMAIL PROTECTED]   2008-07-09 12:57:04 
Re: patch to fix pgadmin1.8.4 build on Solaris 10.
Mayuresh.Nirhali@[EMAIL P  2008-07-09 17:22:15 
Re: patch to fix pgadmin1.8.4 build on Solaris 10.
Zdenek.Kotala@[EMAIL PROT  2008-07-10 10:25:28 
Re: patch to fix pgadmin1.8.4 build on Solaris 10.
dpage@[EMAIL PROTECTED]   2008-07-10 13:49:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 23:53:17 CST 2008.