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
  • acinclude.m4

    RCS file: /cvs/openafs/acinclude.m4,v
    retrieving revision 1.114.2.103
    diff -u -r1.114.2.103 acinclude.m4
     
    608608                 LINUX_KMEM_CACHE_CREATE_TAKES_DTOR
    609609                 LINUX_CONFIG_H_EXISTS
    610610                 LINUX_COMPLETION_H_EXISTS
     611                 LINUX_SEMAPHORE_H_EXISTS
    611612                 LINUX_DEFINES_FOR_EACH_PROCESS
    612613                 LINUX_DEFINES_PREV_TASK
    613614                 LINUX_FS_STRUCT_SUPER_HAS_ALLOC_INODE
  • src/afs/sysincludes.h

    RCS file: /cvs/openafs/src/afs/sysincludes.h,v
    retrieving revision 1.28.2.15
    diff -u -r1.28.2.15 sysincludes.h
     
    108108#include <linux/mm.h>
    109109#include <linux/slab.h>
    110110#include <linux/string.h>
     111#if defined(LINUX_SEMAPHORE_H)
     112#include <linux/semaphore.h>
     113#else
    111114#include <asm/semaphore.h>
     115#endif
    112116#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
    113117#include <linux/mutex.h>
    114118#endif
  • src/cf/linux-test4.m4

    RCS file: /cvs/openafs/src/cf/linux-test4.m4,v
    retrieving revision 1.20.2.49
    diff -u -r1.20.2.49 linux-test4.m4
     
    10321032    AC_DEFINE([EXPORTED_PROC_ROOT_FS], 1, [define if proc_root_fs is exported])
    10331033  fi])
    10341034 
     1035AC_DEFUN([LINUX_SEMAPHORE_H_EXISTS], [
     1036  AC_MSG_CHECKING([for linux/semaphore.h existance])
     1037  AC_CACHE_VAL([ac_cv_linux_semaphore_h_exists], [
     1038    AC_TRY_KBUILD(
     1039[#include <linux/semaphore.h>],
     1040[return;],
     1041      ac_cv_linux_semaphore_h_exists=yes,
     1042      ac_cv_linux_semaphore_h_exists=no)])
     1043  AC_MSG_RESULT($ac_cv_linux_semaphore_h_exists)
     1044  if test "x$ac_cv_linux_semaphore_h_exists" = "xyes"; then
     1045    AC_DEFINE([LINUX_SEMAPHORE_H], 1, [define if linux/semaphore.h exists])
     1046  fi])
     1047
Note: See TracBrowser for help on using the repository browser.