summaryrefslogtreecommitdiffhomepage
path: root/src/common.h
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2003-06-25 18:20:22 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2003-06-25 18:20:22 +0000
commitddcac5ae09c30e8b42dc992a802cb27fb434c3b8 (patch)
tree721e22c67a16777fea606341208c8dc61801c0b4 /src/common.h
parentd2f5f5c56471eff1488fefad48b646d03f7fef5c (diff)
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.]
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h9
1 files changed, 8 insertions, 1 deletions
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