diff options
author | Thomas G. Lockhart | 1998-11-04 16:24:32 +0000 |
---|---|---|
committer | Thomas G. Lockhart | 1998-11-04 16:24:32 +0000 |
commit | 45849651d0ef97a8fe9128701a380ee10dbc3a58 (patch) | |
tree | 5da730127755e642bdaa126609c0ecf252063367 /socket.h | |
parent | 2325d600dc6b6c8450d5160e0c369d06ff70c81b (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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |