summaryrefslogtreecommitdiff
path: root/source3/lib/replace/replace.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-06-02 09:10:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:05 -0500
commite893d7f021d149803aa85e347e0a8acefde210ac (patch)
tree9af37dc1bf763b66cf94b8669ff1aa8ab6c77bb2 /source3/lib/replace/replace.h
parentb25bebb960eee796d5c5b1483f20250ed286894b (diff)
downloadsamba-e893d7f021d149803aa85e347e0a8acefde210ac.tar.gz
samba-e893d7f021d149803aa85e347e0a8acefde210ac.tar.bz2
samba-e893d7f021d149803aa85e347e0a8acefde210ac.zip
r23309: sync lib/replace with SAMBA_4_0
metze (This used to be commit 20965d800fcac0c55853fb12cdd36b5836fc7e56)
Diffstat (limited to 'source3/lib/replace/replace.h')
-rw-r--r--source3/lib/replace/replace.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h
index 3cb3c95b69..f584cd42fa 100644
--- a/source3/lib/replace/replace.h
+++ b/source3/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
@@ -258,6 +262,14 @@ int rep_socketpair(int d, int type, int protocol, int sv[2]);
#endif
#endif
+#ifndef _DEPRECATED_
+#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
+#define _DEPRECATED_ __attribute__ ((deprecated))
+#else
+#define _DEPRECATED_
+#endif
+#endif
+
#ifndef HAVE_VASPRINTF
#define vasprintf rep_vasprintf
int rep_vasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0);