linux-kernel-header-tests-20040818
authorDerrick Brashear <shadow@dementia.org>
Thu, 19 Aug 2004 01:58:18 +0000 (01:58 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 19 Aug 2004 01:58:18 +0000 (01:58 +0000)
check for existance of some headers (in_systm.h, mm_inline.h) to decide on inclusion

acinclude.m4
src/afs/LINUX/osi_vnodeops.c
src/rx/rx_kcommon.h

index 0aa601a..14f7061 100644 (file)
@@ -224,6 +224,15 @@ case $system in
                          fi
                    fi
                  fi
+                if test -f "$LINUX_KERNEL_PATH/include/linux/in_systm.h"; then
+                 AC_DEFINE(HAVE_IN_SYSTM_H, 1, [define if you have in_systm.h header file])
+                fi
+                if test -f "$LINUX_KERNEL_PATH/include/linux/mm_inline.h"; then
+                 AC_DEFINE(HAVE_MM_INLINE_H, 1, [define if you have mm_inline.h header file])
+                fi
+                if test -f "$LINUX_KERNEL_PATH/include/linux/in_systm.h"; then
+                 AC_DEFINE(HAVE_IN_SYSTM_H, 1, [define if you have in_systm.h header file])
+                fi
                 if test "x$ac_cv_linux_exports_sys_chdir" = "xyes" ; then
                  AC_DEFINE(EXPORTED_SYS_CHDIR, 1, [define if your linux kernel exports sys_chdir])
                 fi
index 8c69a2a..4025b5a 100644 (file)
@@ -29,6 +29,9 @@ RCSID
 #include "afs/afs_stats.h"
 #include "afs/afs_osidnlc.h"
 #include "h/mm.h"
+#ifdef HAVE_MM_INLINE_H
+#include "h/mm_inline.h"
+#endif
 #include "h/pagemap.h"
 #if defined(AFS_LINUX24_ENV)
 #include "h/smp_lock.h"
index 3a910de..2545055 100644 (file)
@@ -88,7 +88,9 @@ typedef unsigned short etap_event_t;
 #else
 #include "net/route.h"
 #endif
+#if defined(HAVE_IN_SYSTM_H) || !defined(AFS_LINUX22_ENV)
 #include "netinet/in_systm.h"
+#endif
 #include "netinet/ip.h"
 #if !defined(AFS_HPUX110_ENV) && !defined(AFS_LINUX22_ENV) && !defined(AFS_DARWIN60_ENV) && !defined(AFS_OBSD_ENV)
 #include "netinet/in_pcb.h"