mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
DEVEL15-linux-2-6-27-20080816
LICENSE IPL10 FIXES 111634 add support for 2.6.27, which removes asm/semaphore.h (cherry picked from commit d7a5619e5bd8241dd13611a4be37f04f3aa4ed27)
This commit is contained in:
parent
352a43e8d3
commit
64ae64e972
@ -741,6 +741,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
|
|||||||
LINUX_NEW_EXPORT_OPS
|
LINUX_NEW_EXPORT_OPS
|
||||||
LINUX_CONFIG_H_EXISTS
|
LINUX_CONFIG_H_EXISTS
|
||||||
LINUX_COMPLETION_H_EXISTS
|
LINUX_COMPLETION_H_EXISTS
|
||||||
|
LINUX_SEMAPHORE_H_EXISTS
|
||||||
LINUX_EXPORTFS_H_EXISTS
|
LINUX_EXPORTFS_H_EXISTS
|
||||||
LINUX_DEFINES_FOR_EACH_PROCESS
|
LINUX_DEFINES_FOR_EACH_PROCESS
|
||||||
LINUX_DEFINES_PREV_TASK
|
LINUX_DEFINES_PREV_TASK
|
||||||
|
@ -108,7 +108,11 @@ struct xfs_inode_info {
|
|||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
|
#if defined(LINUX_SEMAPHORE_H)
|
||||||
|
#include <linux/semaphore.h>
|
||||||
|
#else
|
||||||
#include <asm/semaphore.h>
|
#include <asm/semaphore.h>
|
||||||
|
#endif
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -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])
|
AC_DEFINE([NEW_EXPORT_OPS], 1, [define if kernel uses new export ops])
|
||||||
fi])
|
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])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user