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:
parent
d2f5f5c564
commit
ddcac5ae09
@ -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
|
||||
* system. All this information use to be in the "tinyproxy.h" header,
|
||||
@ -171,6 +171,13 @@
|
||||
|
||||
#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 */
|
||||
#ifndef FALSE
|
||||
# define FALSE 0
|
||||
|
Loading…
Reference in New Issue
Block a user