1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-21 02:52:47 +03:00

Test for and handle NULL arguments to mylog() print statements.

Include definition for _IN_ADDR_T if INADDR_NONE is not defined.
This commit is contained in:
Thomas G. Lockhart
1998-11-04 16:24:32 +00:00
parent f47bd801e3
commit 30f35ef9c4
4 changed files with 11 additions and 3 deletions

View File

@@ -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