[OpenAFS-devel] fix a couple problems in afsconfig.h.in - had logic screwed up

nneul@umr.edu nneul@umr.edu
Tue, 15 May 2001 08:43:13 -0500


Index: afsconfig.h.in
===================================================================
RCS file: /cvs/openafs/src/afsconfig.h.in,v
retrieving revision 1.1
diff -u -r1.1 afsconfig.h.in
--- afsconfig.h.in	2001/05/14 21:24:27	1.1
+++ afsconfig.h.in	2001/05/15 13:43:13
@@ -22,6 +22,10 @@
 #ifndef AFS_NT40_ENV
 #define HAVE_UNISTD_H
 #define HAVE_FCNTL_H
+#define HAVE_SYS_TIME_H
+#define HAVE_SYS_FILE_H
+#define HAVE_NETINET_IN_H
+#define HAVE_NETDB_H
 #endif
 
 #ifdef AFS_SUN5_ENV
@@ -30,13 +34,11 @@
 #define HAVE_SYS_MNTENT_H
 #endif
 
-#if defined(AFS_SUN_ENV) || defined(AFS_SGI_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_LINUX20_ENV)
+#if defined(AFS_SGI_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_LINUX20_ENV) || (defined(AFS_SUN_ENV) && !defined(AFS_SUN5_ENV))
 #define HAVE_MNTENT_H
 #endif
 
-#if defined(AFS_OSF_ENV) || defined(AFS_DEC_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
-#define HAVE_SYS_MOUNT_H
-#else
+#if !defined(AFS_OSF_ENV) && !defined(AFS_DEC_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV)
 #define HAVE_SYS_VFS_H
 #endif
 
@@ -45,7 +47,7 @@
 #define HAVE_SYS_FS_TYPES_H
 #endif
 
-#ifdef AFS_AIX41_ENV
+#if !defined(AFS_AIX41_ENV)
 #define HAVE_SYS_MOUNT_H
 #endif