]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux-2-6-27-20080816
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 16 Aug 2008 20:42:34 +0000 (20:42 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 16 Aug 2008 20:42:34 +0000 (20:42 +0000)
LICENSE IPL10
FIXES 111634

add support for 2.6.27, which removes asm/semaphore.h

acinclude.m4
src/afs/sysincludes.h
src/cf/linux-test4.m4

index 6396257f786c1d106b8ea680e0ea3b81b6c937b2..974edc3abd0c60b478acdfe1f6627fba9b66fc49 100644 (file)
@@ -723,6 +723,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
                 LINUX_NEW_EXPORT_OPS
                 LINUX_CONFIG_H_EXISTS
                 LINUX_COMPLETION_H_EXISTS
+                LINUX_SEMAPHORE_H_EXISTS
                 LINUX_EXPORTFS_H_EXISTS
                 LINUX_DEFINES_FOR_EACH_PROCESS
                 LINUX_DEFINES_PREV_TASK
index 67c2089f698a075348fbecc7f91bfbf9f09ce342..6949b9d13e88960ccc81a2aae0b7e31563e8ad7a 100644 (file)
@@ -108,7 +108,11 @@ struct xfs_inode_info {
 #include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/string.h>
+#if defined(LINUX_SEMAPHORE_H)
+#include <linux/semaphore.h>
+#else
 #include <asm/semaphore.h>
+#endif
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
 #include <linux/mutex.h>
 #endif
index 10032ed1868b50ed4f2ababdc0ad07d8024f6e93..af278de98017465fca5eb7e999f50299b826fd3c 100644 (file)
@@ -1079,3 +1079,16 @@ _eops.fh_to_parent(NULL, NULL, 0, 0);],
     AC_DEFINE([NEW_EXPORT_OPS], 1, [define if kernel uses new export ops])
   fi])
  
+AC_DEFUN([LINUX_SEMAPHORE_H_EXISTS], [
+  AC_MSG_CHECKING([for linux/semaphore.h existance])
+  AC_CACHE_VAL([ac_cv_linux_semaphore_h_exists], [
+    AC_TRY_KBUILD(
+[#include <linux/semaphore.h>],
+[return;],
+      ac_cv_linux_semaphore_h_exists=yes,
+      ac_cv_linux_semaphore_h_exists=no)])
+  AC_MSG_RESULT($ac_cv_linux_semaphore_h_exists)
+  if test "x$ac_cv_linux_semaphore_h_exists" = "xyes"; then
+    AC_DEFINE([LINUX_SEMAPHORE_H], 1, [define if linux/semaphore.h exists])
+  fi])
+