From 85e2907c1c425c7cbf3a450a6b0446955553179b Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Wed, 26 Aug 2009 12:45:57 -0400 Subject: [PATCH] More changes to config.h.w32 Addition of : NO_PIDFILES : We don't create PID files NO_SIGPIPE, NO_SIGXCPU: These signals don't exist on Windows NO_UNIX_SOCKETS: No AF_UNIX support Also, ignore variable defintions when we are doing a preprocessor-only run. --- include/config.h.w32 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/config.h.w32 b/include/config.h.w32 index 0248bf061..1f0f7e966 100644 --- a/include/config.h.w32 +++ b/include/config.h.w32 @@ -1371,9 +1371,21 @@ static const char *const rcsid[] = { (const char *)rcsid, "@(#)" msg } /* Define if fd_sets aren't limited to FD_SETSIZE sockets */ #define NO_LIMIT_FD_SETSIZE 1 +/* Define if PID files should not be used. */ +#define NO_PIDFILES 1 + +/* Define if SIGPIPE is not supported */ +#define NO_SIGPIPE 1 + +/* Define if SIGXCPU is not supported */ +#define NO_SIGXCPU 1 + /* Define if sleep() is not available */ #define NO_SLEEP 1 +/* Define to 1 if Unix sockets (AF_UNIX) are not available. */ +#define NO_UNIX_SOCKETS 1 + /* Define this to enable old environment option in telnet. */ /* #define OLD_ENVIRON 1 */ @@ -1453,6 +1465,8 @@ static const char *const rcsid[] = { (const char *)rcsid, "@(#)" msg } #define SIGRETURN(x) return (RETSIGTYPE)(x) #endif +#ifndef CPP_ONLY + typedef int pid_t; typedef unsigned int gid_t; @@ -1461,6 +1475,8 @@ typedef unsigned int uid_t; typedef unsigned short mode_t; +#endif + #ifndef __cplusplus #define inline __inline #endif