summaryrefslogtreecommitdiff
path: root/source4/lib/replace/dlfcn.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-06 11:31:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:44 -0500
commit3ca73facc59ed8a97abbc28c1b4bedde87e109a6 (patch)
tree6959d7d7e546cf8be7e57eb9bcd1cdfb1170b412 /source4/lib/replace/dlfcn.c
parentd093b28b55bac53c32cf3bf35424ca967b55bfc5 (diff)
downloadsamba-3ca73facc59ed8a97abbc28c1b4bedde87e109a6.tar.gz
samba-3ca73facc59ed8a97abbc28c1b4bedde87e109a6.tar.bz2
samba-3ca73facc59ed8a97abbc28c1b4bedde87e109a6.zip
r18160: - pread and pwrite replacements need to be non-static
- replacing rename() is pointless - all platforms have it (and the #define of rename breaks some code) - use system/locale.h in snprintf.c - fix passwd.h for initgroups - stdlib is in replace.h, not needed elsewhere - fix the initgroups replacement - fix mapping of dl functions to rep_* (This used to be commit 57cd0ca176387d6a3acabf9fedeef4f2a3a3dad7)
Diffstat (limited to 'source4/lib/replace/dlfcn.c')
-rw-r--r--source4/lib/replace/dlfcn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/replace/dlfcn.c b/source4/lib/replace/dlfcn.c
index 79005c0d2b..e25ac9dfe5 100644
--- a/source4/lib/replace/dlfcn.c
+++ b/source4/lib/replace/dlfcn.c
@@ -24,7 +24,6 @@
*/
#include "replace.h"
-#include <stdlib.h>
#ifndef HAVE_DLOPEN
void *dlopen(const char *name, int flags)
@@ -41,7 +40,7 @@ void *dlsym(void *handle, const char *symbol)
#endif
#ifndef HAVE_DLERROR
-const char *dlerror(void)
+char *dlerror(void)
{
return "dynamic loading of objects not supported on this platform";
}