Makefile: Split definitions for SGI4,5,6.
[kai/samba.git] / source3 / include / includes.h
index 03c2d461e6a7c339bd2bf50ccfe54d950f7f3d88..4ca1d4c3b0d270a1ce9bd8e0a09923f8262c01cd 100644 (file)
@@ -217,6 +217,14 @@ Here come some platform specific sections
 #ifndef NO_ASMSIGNALH
 #include <asm/signal.h>
 #endif
+#ifdef GLIBC2
+#define _LINUX_C_LIB_VERSION_MAJOR     6
+#include <termios.h>
+#include <rpcsvc/ypclnt.h>
+#include <crypt.h>
+#include <netinet/tcp.h>
+#include <netinet/ip.h>
+#endif
 #define SIGNAL_CAST (__sighandler_t)
 #define USE_GETCWD
 #define USE_SETSID
@@ -308,7 +316,9 @@ extern int innetgr (const char *, const char *, const char *, const char *);
 #define USE_STATVFS
 #define USE_GETCWD
 #define USE_SETSID
+#ifndef REPLACE_GETPASS
 #define REPLACE_GETPASS
+#endif /* REPLACE_GETPASS */
 #define USE_SIGPROCMASK
 #endif
 
@@ -330,7 +340,7 @@ char *getwd(char *);
 #define USE_WAITPID
 #endif
 
-#ifdef SGI
+#ifdef SGI4
 #include <netinet/tcp.h>
 #include <sys/statfs.h>
 #include <string.h>
@@ -345,7 +355,7 @@ char *getwd(char *);
 #define USE_SETSID
 #endif
 
-#ifdef SGI5
+#if defined(SGI5) || defined(SGI6)
 #include <arpa/inet.h>
 #include <netinet/tcp.h>
 #include <netinet/in_systm.h>
@@ -459,7 +469,9 @@ char *mktemp(char *); /* No standard include */
 #define NO_FSYNC
 #define USE_GETCWD
 #define USE_SETSID
+#ifndef REPLACE_GETPASS
 #define REPLACE_GETPASS
+#endif /* REPLACE_GETPASS */
 #define NO_GETRLIMIT
 #endif /* CLIX */
 
@@ -541,7 +553,9 @@ char *mktemp(char *); /* No standard include */
 #define NEED_AUTH_PARAMETERS
 #endif
 #define SIGNAL_CAST (void (*)(__harg))
+#ifndef HPUX10 /* This is only needed for HPUX 9.x */
 #define SELECT_CAST (int *)
+#endif /* HPUX10 */
 #define SYSV
 #define USE_WAITPID
 #define WAIT3_CAST2 (int *)
@@ -549,8 +563,10 @@ char *mktemp(char *); /* No standard include */
 #define USE_SETSID
 #define USE_SETRES
 #define DEFAULT_PRINTING PRINT_HPUX
-#define SIGCLD_IGNORE
-#endif
+/* Ken Weiss <krweiss@ucdavis.edu> tells us that SIGCLD_IGNORE is
+   not good for HPUX */
+/* #define SIGCLD_IGNORE */
+#endif /* HPUX */
 
 
 #ifdef SEQUENT
@@ -1180,6 +1196,10 @@ it works and getting lots of bug reports */
 #define QSORT_CAST (int (*)())
 #endif
 
+#ifndef INADDR_LOOPBACK
+#define INADDR_LOOPBACK 0x7f000001
+#endif /* INADDR_LOOPBACK */
+
 /* this is a rough check to see if this machine has a lstat() call.
    it is not guaranteed to work */
 #if !(defined(S_ISLNK) || defined(S_IFLNK))