summaryrefslogtreecommitdiff
path: root/source4/lib/replace/dlfcn.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace/dlfcn.c')
-rw-r--r--source4/lib/replace/dlfcn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/dlfcn.c b/source4/lib/replace/dlfcn.c
index 22f9f8bf79..55b38bb9eb 100644
--- a/source4/lib/replace/dlfcn.c
+++ b/source4/lib/replace/dlfcn.c
@@ -26,7 +26,11 @@
#include "replace.h"
#ifndef HAVE_DLOPEN
+#ifdef DLOPEN_TAKES_UNSIGNED_FLAGS
+void *rep_dlopen(const char *name, unsigned int flags)
+#else
void *rep_dlopen(const char *name, int flags)
+#endif
{
return NULL;
}