From: Derrick Brashear Date: Tue, 26 Nov 2002 23:54:44 +0000 (+0000) Subject: STABLE12-disable-new-afs-thread-model-in-old-kernels-20021126 X-Git-Tag: openafs-stable-1_2_8~15 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=cd8dbe3ecfa3727a3d9b425ccd7a890d8453a472;p=packages%2Fo%2Fopenafs.git STABLE12-disable-new-afs-thread-model-in-old-kernels-20021126 so COMPLETION_H_EXISTS doesn't happen with 2.4.7-10 (cherry picked from commit 2ab5a578cf5ff61ef470fade98684e4f4cf6a9df) --- diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index ca39852f4..ee2b143af 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -85,8 +85,13 @@ CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS" AC_CACHE_VAL(ac_cv_linux_completion_h_exists, [ AC_TRY_COMPILE( -[#include ], -[struct completion _c;], +[#include +#include ], +[struct completion _c; +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,8) +lose +#endif +], ac_cv_linux_completion_h_exists=yes, ac_cv_linux_completion_h_exists=no)]) AC_MSG_RESULT($ac_cv_linux_completion_h_exists)