summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-30 13:14:01 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:18 +1000
commit8e36daf51389c43de9182c660a68923049e7df5e (patch)
tree0e0c97afaa522750c9ce912424b2349c3f876480 /lib
parent77a4fe495ef8056d186d5b6d24f895ff64db77ee (diff)
downloadsamba-8e36daf51389c43de9182c660a68923049e7df5e.tar.gz
samba-8e36daf51389c43de9182c660a68923049e7df5e.tar.bz2
samba-8e36daf51389c43de9182c660a68923049e7df5e.zip
s4-waf: added test for dlopen prototype
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 12ccd395a2..7c060a92e6 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -128,6 +128,9 @@ def configure(conf):
conf.CHECK_FUNCS_IN('dlopen dlsym dlerror dlclose', 'dl',
checklibc=True, headers='dlfcn.h dl.h')
+ conf.CHECK_C_PROTOTYPE('dlopen', 'void *dlopen(const char* filename, unsigned int flags)',
+ define='DLOPEN_TAKES_UNSIGNED_FLAGS', headers='dlfcn.h dl.h')
+
conf.CHECK_FUNCS_IN('fdatasync', 'rt', checklibc=True)
# these headers need to be tested as a group on freebsd