update-tasklist-lock-test-20070226
authorStephan Wiesand <Stephan.Wiesand@desy.de>
Mon, 26 Feb 2007 17:50:37 +0000 (17:50 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 26 Feb 2007 17:50:37 +0000 (17:50 +0000)
FIXES 54916

make the tasklist lock test actually detect GPL stupidity

src/cf/linux-test4.m4

index 3002d93..653464f 100644 (file)
@@ -6,6 +6,7 @@ AC_DEFUN([LINUX_EXPORTS_TASKLIST_LOCK], [
 #include <linux/sched.h>],
 [
 extern rwlock_t tasklist_lock __attribute__((weak)); 
+read_lock(&tasklist_lock);
 ],
       ac_cv_linux_exports_tasklist_lock=yes,
       ac_cv_linux_exports_tasklist_lock=no)])