linux-use-kernel-net-include-dir-for-net-20030519
authorDerrick Brashear <shadow@dementia.org>
Tue, 20 May 2003 04:57:44 +0000 (04:57 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 20 May 2003 04:57:44 +0000 (04:57 +0000)
since we can end up trying to include things which exist in include/net
but not include/linux, try to rationalize.

src/afs/afs_conn.c
src/afs/afs_server.c
src/afs/afs_user.c
src/afs/afs_util.c
src/afs/afs_volume.c
src/libafs/MakefileProto.LINUX.in
src/rx/rx_kcommon.h

index 7691b2c..de261b5 100644 (file)
@@ -19,7 +19,9 @@ RCSID("$Header$");
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
 
 #if !defined(UKERNEL)
+#if !defined(AFS_LINUX20_ENV)
 #include <net/if.h>
+#endif
 #include <netinet/in.h>
 
 #ifdef AFS_SGI62_ENV
index 550a10d..184d6e7 100644 (file)
@@ -38,7 +38,9 @@ RCSID("$Header$");
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
 
 #if !defined(UKERNEL)
+#if !defined(AFS_LINUX20_ENV)
 #include <net/if.h>
+#endif
 #include <netinet/in.h>
 
 #ifdef AFS_SGI62_ENV
index 3889647..a0b7b97 100644 (file)
@@ -19,7 +19,9 @@ RCSID("$Header$");
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
 
 #if !defined(UKERNEL)
+#if !defined(AFS_LINUX20_ENV)
 #include <net/if.h>
+#endif
 #include <netinet/in.h>
 
 #ifdef AFS_SGI62_ENV
index 751423a..30aa9bb 100644 (file)
@@ -21,7 +21,9 @@ RCSID("$Header$");
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
 
 #if !defined(UKERNEL)
+#if !defined(AFS_LINUX20_ENV)
 #include <net/if.h>
+#endif
 #include <netinet/in.h>
 
 #ifdef AFS_SGI62_ENV
index 4b3d679..938949e 100644 (file)
@@ -24,7 +24,9 @@ RCSID("$Header$");
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
 
 #if !defined(UKERNEL)
+#if !defined(AFS_LINUX20_ENV)
 #include <net/if.h>
+#endif
 #include <netinet/in.h>
 
 #ifdef AFS_SGI62_ENV
index d6b74c9..434eea5 100644 (file)
@@ -118,7 +118,7 @@ ${COMPDIRS} ${INSTDIRS} ${DESTDIRS}:
        $(RM) -f linux 
        ln -fs ${LINUX_KERNEL_PATH}/include/linux linux 
        $(RM) -f net 
-       ln -fs ${LINUX_KERNEL_PATH}/include/linux net 
+       ln -fs ${LINUX_KERNEL_PATH}/include/net net 
        $(RM) -f netinet 
        ln -fs ${LINUX_KERNEL_PATH}/include/linux netinet 
        $(RM) -f sys
index a68a2b7..23fcf74 100644 (file)
 #ifndef _RX_KCOMMON_H_
 #define _RX_KCOMMON_H_
 
+#ifdef AFS_LINUX22_ENV
+#define _LINUX_CODA_FS_I 1
+#define _CODA_HEADER_ 1
+struct coda_inode_info {};
+#endif
 #ifdef AFS_DARWIN_ENV
 #ifndef _MACH_ETAP_H_
 #define _MACH_ETAP_H_
 typedef unsigned short                  etap_event_t;
 #endif
 #endif  
+
+
 #include "h/types.h"
 #include "h/param.h"
 #ifndef AFS_LINUX22_ENV
@@ -75,7 +82,11 @@ typedef unsigned short                  etap_event_t;
 #include "h/signalvar.h"
 #endif /* AFS_OBSD_ENV */
 #include "netinet/in.h"
+#ifdef AFS_LINUX22_ENV
+#include "linux/route.h"
+#else
 #include "net/route.h"
+#endif
 #include "netinet/in_systm.h"
 #include "netinet/ip.h"
 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV) && !defined(AFS_OBSD_ENV)
@@ -95,17 +106,16 @@ typedef unsigned short                  etap_event_t;
 #include "h/user.h"
 #endif
 #ifdef AFS_LINUX22_ENV
-#define _LINUX_CODA_FS_I
-struct coda_inode_info {};
 #include "h/sched.h"
 #include "h/netdevice.h"
+#include "linux/if.h"
 #else
 #if !defined(AFS_OBSD_ENV)
 #include "h/proc.h"
 #include "h/file.h"
 #endif
-#endif
 #include "net/if.h"
+#endif
 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV)
 #include "netinet/in_var.h"
 #endif /* ! AFS_HPUX110_ENV && ! AFS_LINUX22_ENV */