From ddcac5ae09c30e8b42dc992a802cb27fb434c3b8 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Wed, 25 Jun 2003 18:20:22 +0000 Subject: 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.] --- src/common.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/common.h b/src/common.h index be696cf..0982189 100644 --- a/src/common.h +++ b/src/common.h @@ -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 -- cgit v1.2.3