Added a test to define INADDR_NONE if it's not present. For example,

SunOS (solaris 2.8) does not include this define.  [Thank to Ben
Hartshorne for pointing this out.]
This commit is contained in:
Robert James Kaes 2003-06-25 18:20:22 +00:00
parent d2f5f5c564
commit ddcac5ae09

View File

@ -1,4 +1,4 @@
/* $Id: common.h,v 1.5 2003-03-13 19:31:09 rjkaes Exp $ /* $Id: common.h,v 1.6 2003-06-25 18:20:22 rjkaes Exp $
* *
* This file groups all the headers required throughout the tinyproxy * This file groups all the headers required throughout the tinyproxy
* system. All this information use to be in the "tinyproxy.h" header, * system. All this information use to be in the "tinyproxy.h" header,
@ -171,6 +171,13 @@
#define MAXLISTEN 1024 /* Max number of connections */ #define MAXLISTEN 1024 /* Max number of connections */
/*
* SunOS doesn't have INADDR_NONE defined.
*/
#ifndef INADDR_NONE
# define INADDR_NONE -1
#endif
/* Define boolean values */ /* Define boolean values */
#ifndef FALSE #ifndef FALSE
# define FALSE 0 # define FALSE 0