configure-redhat-kernel-bug-workaround-20010715
authorDerek Atkins <warlord@mit.edu>
Mon, 16 Jul 2001 01:59:01 +0000 (01:59 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 16 Jul 2001 01:59:01 +0000 (01:59 +0000)
to allow hooking in to deal with bug in redhat kernel headers

acconfig.h
configure.in

index 0979d19..395c77a 100644 (file)
@@ -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
index a67eefd..829b87a 100644 (file)
@@ -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"