Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
void *handle = NULL;
int i;
void *handle = NULL;
int i;
-#ifdef HAVE_APPLE
- return RTLD_NEXT;
-#endif
-
#ifdef RTLD_DEEPBIND
flags |= RTLD_DEEPBIND;
#endif
#ifdef RTLD_DEEPBIND
flags |= RTLD_DEEPBIND;
#endif
+#ifdef RTLD_NEXT
+ handle = uwrap.libc.handle = RTLD_NEXT;
+#else
fprintf(stderr,
"Failed to dlopen library: %s\n",
dlerror());
exit(-1);
fprintf(stderr,
"Failed to dlopen library: %s\n",
dlerror());
exit(-1);