summaryrefslogtreecommitdiff
path: root/source3/lib/replace/replace.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-05-24 07:15:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:46 -0500
commit5aec9e21bd3a8c3bd4adc41e9ae2afa79d5861b5 (patch)
tree6f2a2221ad95242a2a3cd579c3a925e386e20d8a /source3/lib/replace/replace.h
parent4aa857d875663f39740b4667fc7852a530536660 (diff)
downloadsamba-5aec9e21bd3a8c3bd4adc41e9ae2afa79d5861b5.tar.gz
samba-5aec9e21bd3a8c3bd4adc41e9ae2afa79d5861b5.tar.bz2
samba-5aec9e21bd3a8c3bd4adc41e9ae2afa79d5861b5.zip
r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Fixing build of ldb for instance on some systems without dlfcn.h. (This used to be commit 5a06726e6873accd255d584e2c18e62dfcac108d)
Diffstat (limited to 'source3/lib/replace/replace.h')
-rw-r--r--source3/lib/replace/replace.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h
index 916d5a55e6..3cb3c95b69 100644
--- a/source3/lib/replace/replace.h
+++ b/source3/lib/replace/replace.h
@@ -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)