More changes to config.h.w32
authorAsanka Herath <asanka@secure-endpoints.com>
Wed, 26 Aug 2009 16:45:57 +0000 (12:45 -0400)
committerLove Hornquist Astrand <lha@h5l.org>
Tue, 24 Nov 2009 18:11:16 +0000 (10:11 -0800)
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

index 0248bf0615a5439dc2ea263fdeee3d249d20d407..1f0f7e9661a91c33a586da456f225c323ce03a76 100644 (file)
@@ -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