summaryrefslogtreecommitdiff
path: root/source4/lib/replace/replace.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-29 15:18:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:53:03 -0500
commit867f7f4b7499c810adf3d5b391966321709e864d (patch)
tree45c8da0650259f9b749e08023c306030c3569594 /source4/lib/replace/replace.h
parent9f6c762b0acfd65da7d4b9ed80d107400aca1bbd (diff)
downloadsamba-867f7f4b7499c810adf3d5b391966321709e864d.tar.gz
samba-867f7f4b7499c810adf3d5b391966321709e864d.tar.bz2
samba-867f7f4b7499c810adf3d5b391966321709e864d.zip
r23208: on some HP-UX boxes dlfcn.h is available and use unsigned int flags
for dlopen but no library contains the function... metze (This used to be commit 0c7e3ed9625d512522a0cc7278e705fbbfc316f4)
Diffstat (limited to 'source4/lib/replace/replace.h')
-rw-r--r--source4/lib/replace/replace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h
index 1259400d6f..f584cd42fa 100644
--- a/source4/lib/replace/replace.h
+++ b/source4/lib/replace/replace.h
@@ -228,8 +228,12 @@ char *rep_dlerror(void);
#ifndef HAVE_DLOPEN
#define dlopen rep_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
+#endif
#ifndef HAVE_DLSYM
#define dlsym rep_dlsym