diff options
author | Magnus Hagander <magnus@hagander.net> | 2010-01-28 11:36:14 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2010-01-28 11:36:14 +0000 |
commit | 21d3ae09da6821c0014a4f8e60c547286ffb9b41 (patch) | |
tree | bc586d6983238cc18e2892448f3ff3e64868491f /src | |
parent | bcd8528f001f723d6c93648f5386152846384830 (diff) | |
download | postgresql-21d3ae09da6821c0014a4f8e60c547286ffb9b41.tar.gz postgresql-21d3ae09da6821c0014a4f8e60c547286ffb9b41.zip |
Define INADDR_NONE on Solaris when it's missing. Per a couple of buildfarm
members complaining.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/port/solaris.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/port/solaris.h b/src/include/port/solaris.h index cfdedb01faa..5dc6894b795 100644 --- 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.17 2007/11/15 21:14:44 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.18 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 + |