From 8e36daf51389c43de9182c660a68923049e7df5e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 30 Mar 2010 13:14:01 +1100 Subject: s4-waf: added test for dlopen prototype --- lib/replace/wscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/replace') 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 -- cgit