Skip to content
Snippets Groups Projects
Commit 21d3ae09 authored by Magnus Hagander's avatar Magnus Hagander
Browse files

Define INADDR_NONE on Solaris when it's missing. Per a couple of buildfarm

members complaining.
parent bcd8528f
No related branches found
No related tags found
No related merge requests found
/* $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 * Sort this out for all operating systems some time. The __xxx
...@@ -36,3 +36,11 @@ ...@@ -36,3 +36,11 @@
* still use our own fix for the buggy version. * still use our own fix for the buggy version.
*/ */
#define HAVE_BUGGY_SOLARIS_STRTOD #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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment