source: server/common/patches/openafs-2.6.27.patch @ 904

Last change on this file since 904 was 904, checked in by geofft, 15 years ago
openafs: Compile on 2.6.27 [rt.central.org #111634]. Linux 2.6.27 replaced <asm/semaphore.h> with <linux/semaphore.h>.
File size: 2.0 KB
RevLine 
[904]1Index: acinclude.m4
2===================================================================
3RCS file: /cvs/openafs/acinclude.m4,v
4retrieving revision 1.114.2.103
5diff -u -r1.114.2.103 acinclude.m4
6--- acinclude.m4        11 Jul 2008 09:54:35 -0000      1.114.2.103
7+++ acinclude.m4        12 Aug 2008 19:45:27 -0000
8@@ -608,6 +608,7 @@
9                 LINUX_KMEM_CACHE_CREATE_TAKES_DTOR
10                 LINUX_CONFIG_H_EXISTS
11                 LINUX_COMPLETION_H_EXISTS
12+                LINUX_SEMAPHORE_H_EXISTS
13                 LINUX_DEFINES_FOR_EACH_PROCESS
14                 LINUX_DEFINES_PREV_TASK
15                 LINUX_FS_STRUCT_SUPER_HAS_ALLOC_INODE
16Index: src/afs/sysincludes.h
17===================================================================
18RCS file: /cvs/openafs/src/afs/sysincludes.h,v
19retrieving revision 1.28.2.15
20diff -u -r1.28.2.15 sysincludes.h
21--- src/afs/sysincludes.h       23 Nov 2007 13:45:04 -0000      1.28.2.15
22+++ src/afs/sysincludes.h       12 Aug 2008 19:45:30 -0000
23@@ -108,7 +108,11 @@
24 #include <linux/mm.h>
25 #include <linux/slab.h>
26 #include <linux/string.h>
27+#if defined(LINUX_SEMAPHORE_H)
28+#include <linux/semaphore.h>
29+#else
30 #include <asm/semaphore.h>
31+#endif
32 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
33 #include <linux/mutex.h>
34 #endif
35Index: src/cf/linux-test4.m4
36===================================================================
37RCS file: /cvs/openafs/src/cf/linux-test4.m4,v
38retrieving revision 1.20.2.49
39diff -u -r1.20.2.49 linux-test4.m4
40--- src/cf/linux-test4.m4       9 Jun 2008 03:39:44 -0000       1.20.2.49
41+++ src/cf/linux-test4.m4       12 Aug 2008 19:45:31 -0000
42@@ -1032,3 +1032,16 @@
43     AC_DEFINE([EXPORTED_PROC_ROOT_FS], 1, [define if proc_root_fs is exported])
44   fi])
45 
46+AC_DEFUN([LINUX_SEMAPHORE_H_EXISTS], [
47+  AC_MSG_CHECKING([for linux/semaphore.h existance])
48+  AC_CACHE_VAL([ac_cv_linux_semaphore_h_exists], [
49+    AC_TRY_KBUILD(
50+[#include <linux/semaphore.h>],
51+[return;],
52+      ac_cv_linux_semaphore_h_exists=yes,
53+      ac_cv_linux_semaphore_h_exists=no)])
54+  AC_MSG_RESULT($ac_cv_linux_semaphore_h_exists)
55+  if test "x$ac_cv_linux_semaphore_h_exists" = "xyes"; then
56+    AC_DEFINE([LINUX_SEMAPHORE_H], 1, [define if linux/semaphore.h exists])
57+  fi])
58+
Note: See TracBrowser for help on using the repository browser.