Skip to content

Commit 21d3ae0

Browse files
committed
Define INADDR_NONE on Solaris when it's missing. Per a couple of buildfarm
members complaining.
1 parent bcd8528 commit 21d3ae0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/include/port/solaris.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.17 2007/11/15 21:14:44 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.18 2010/01/28 11:36:14 mha Exp $ */
22

33
/*
44
* Sort this out for all operating systems some time. The __xxx
@@ -36,3 +36,11 @@
3636
* still use our own fix for the buggy version.
3737
*/
3838
#define HAVE_BUGGY_SOLARIS_STRTOD
39+
40+
/*
41+
* Many versions of Solaris are missing the definition of INADDR_NONE
42+
*/
43+
#ifndef INADDR_NONE
44+
#define INADDR_NONE ((in_addr_t)(-1))
45+
#endif
46+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy