aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/socket.h
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1998-11-04 16:24:32 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1998-11-04 16:24:32 +0000
commit30f35ef9c45a7e76a1f63380bcefac911cc025f5 (patch)
treef3b9d2aeaa74ca660bd13fc59edefd6285afffbd /src/interfaces/odbc/socket.h
parentf47bd801e3052dd296534603accec8ddaa53dc2e (diff)
downloadpostgresql-30f35ef9c45a7e76a1f63380bcefac911cc025f5.tar.gz
postgresql-30f35ef9c45a7e76a1f63380bcefac911cc025f5.zip
Test for and handle NULL arguments to mylog() print statements.
Include definition for _IN_ADDR_T if INADDR_NONE is not defined.
Diffstat (limited to 'src/interfaces/odbc/socket.h')
-rw-r--r--src/interfaces/odbc/socket.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interfaces/odbc/socket.h b/src/interfaces/odbc/socket.h
index d57d012a48f..50418f9942f 100644
--- a/src/interfaces/odbc/socket.h
+++ b/src/interfaces/odbc/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