From: Derek Atkins Date: Mon, 16 Jul 2001 01:59:01 +0000 (+0000) Subject: configure-redhat-kernel-bug-workaround-20010715 X-Git-Tag: openafs-stable-1_1_0~4 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=5c38f46fc8bc87bd3666c9508263585afb87d60c configure-redhat-kernel-bug-workaround-20010715 to allow hooking in to deal with bug in redhat kernel headers --- diff --git a/acconfig.h b/acconfig.h index 0979d19..395c77a 100644 --- a/acconfig.h +++ b/acconfig.h @@ -30,3 +30,10 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #undef INODE_SETATTR_NOT_VOID #undef STRUCT_INODE_HAS_I_BYTES #undef STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK + +/* glue for RedHat kernel bug */ +#undef ENABLE_REDHAT_BUILDSYS + +#if defined(ENABLE_REDHAT_BUILDSYS) && defined(KERNEL) && defined(REDHAT_FIX) +#include "redhat-fix.h" +#endif diff --git a/configure.in b/configure.in index a67eefd..829b87a 100644 --- a/configure.in +++ b/configure.in @@ -62,6 +62,9 @@ system=$host case $system in *-linux*) MKAFS_OSTYPE=LINUX + if test "x$enable_redhat_buildsys" = "xyes"; then + AC_DEFINE(ENABLE_REDHAT_BUILDSYS) + fi if test "x$enable_kernel_module" = "xyes"; then if test "x$with_linux_kernel_headers" != "x"; then LINUX_KERNEL_PATH="$with_linux_kernel_headers"