From: Andrew Bartlett Date: Tue, 23 Oct 2012 06:14:55 +0000 (+1100) Subject: lib/replace: Fix detection of prctl X-Git-Tag: ldb-1.1.14~165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80f42df4ec9194ff00aeeb3c2cf6acfa1f2ab5c3;p=thirdparty%2Fsamba.git lib/replace: Fix detection of prctl --- diff --git a/source3/wscript b/source3/wscript index 92575c82647..00e9858517f 100644 --- a/source3/wscript +++ b/source3/wscript @@ -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 +#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