r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
authorMichael Adam <obnox@samba.org>
Thu, 24 May 2007 07:15:36 +0000 (07:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:46 +0000 (12:22 -0500)
Fixing build of ldb for instance on some systems without dlfcn.h.

source/lib/replace/replace.h

index 916d5a55e69cad497b6236b0032e9037c343107a..3cb3c95b694f016b7199b21a29a99400cdbc0f9e 100644 (file)
@@ -111,11 +111,6 @@ extern char *sys_errlist[];
 extern int errno;
 #endif
 
-#if defined(HAVE_LINUX_READAHEAD) && ! defined(HAVE_READAHEAD_DECL)
-ssize_t readahead(int fd, off64_t offset, size_t count);
-#endif
-
-
 #ifndef HAVE_STRDUP
 #define strdup rep_strdup
 char *rep_strdup(const char *s);
@@ -326,6 +321,12 @@ char *rep_strptime(const char *buf, const char *format, struct tm *tm);
 #ifndef RTLD_LAZY
 #define RTLD_LAZY 0
 #endif
+#ifndef RTLD_NOW
+#define RTLD_NOW 0
+#endif
+#ifndef RTLD_GLOBAL
+#define RTLD_GLOBAL 0
+#endif
 
 #ifndef HAVE_SECURE_MKSTEMP
 #define mkstemp(path) rep_mkstemp(path)