summaryrefslogtreecommitdiff
path: root/socket.h
diff options
context:
space:
mode:
authorThomas G. Lockhart1998-11-04 16:24:32 +0000
committerThomas G. Lockhart1998-11-04 16:24:32 +0000
commit45849651d0ef97a8fe9128701a380ee10dbc3a58 (patch)
tree5da730127755e642bdaa126609c0ecf252063367 /socket.h
parent2325d600dc6b6c8450d5160e0c369d06ff70c81b (diff)
Test for and handle NULL arguments to mylog() print statements.REL6_4
Include definition for _IN_ADDR_T if INADDR_NONE is not defined.
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index d57d012..50418f9 100644
--- a/socket.h
+++ b/socket.h
@@ -23,6 +23,13 @@
#include <arpa/inet.h>
#define closesocket(xxx) close(xxx)
#define SOCKETFD int
+#ifndef INADDR_NONE
+#ifndef _IN_ADDR_T
+#define _IN_ADDR_T
+typedef unsigned int in_addr_t;
+#endif
+#define INADDR_NONE ((in_addr_t)-1)
+#endif
#else
#include <winsock.h>
#define SOCKETFD SOCKET