lib/replace: Fix detection of prctl
authorAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2012 06:14:55 +0000 (17:14 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2012 07:29:19 +0000 (09:29 +0200)
source3/wscript

index 92575c82647c058fb6d285a6ae39998200a5b2d4..00e9858517f9c18d318f7ccf7eaebfba7827bfd3 100644 (file)
@@ -266,6 +266,14 @@ __sys_llseek syslog _telldir __telldir textdomain timegm
 utimensat vsyslog _write __write __xstat
 ''')
 
+    conf.CHECK_CODE('''
+#ifdef HAVE_SYS_PRCTL_H
+#include <sys/prctl.h>
+#endif
+int i; i = prtcl(0); 
+''', 
+                    'HAVE_PRCTL', link=False)
+
     conf.CHECK_SAMBA3_CHARSET() # see build/charset.py
 
     # FIXME: these should be tests for features, but the old build system just