projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcd8528
)
Define INADDR_NONE on Solaris when it's missing. Per a couple of buildfarm
author
Magnus Hagander
<magnus@hagander.net>
Thu, 28 Jan 2010 11:36:14 +0000
(11:36 +0000)
committer
Magnus Hagander
<magnus@hagander.net>
Thu, 28 Jan 2010 11:36:14 +0000
(11:36 +0000)
members complaining.
src/include/port/solaris.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/port/solaris.h
b/src/include/port/solaris.h
index cfdedb01faa53a6dd33ab9bbd632a4f8b5301dd7..5dc6894b795a4a2a1fde94861a04c64488f06b2e 100644
(file)
--- a/
src/include/port/solaris.h
+++ b/
src/include/port/solaris.h
@@
-1,4
+1,4
@@
-/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.1
7 2007/11/15 21:14:44 momjian
Exp $ */
+/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.1
8 2010/01/28 11:36:14 mha
Exp $ */
/*
* Sort this out for all operating systems some time. The __xxx
@@
-36,3
+36,11
@@
* still use our own fix for the buggy version.
*/
#define HAVE_BUGGY_SOLARIS_STRTOD
+
+/*
+ * Many versions of Solaris are missing the definition of INADDR_NONE
+ */
+#ifndef INADDR_NONE
+#define INADDR_NONE ((in_addr_t)(-1))
+#endif
+