aboutsummaryrefslogtreecommitdiff
path: root/dlfcn
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn')
-rw-r--r--dlfcn/dlfcn.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/dlfcn/dlfcn.h b/dlfcn/dlfcn.h
index 76fdc3c1c9..22ab9aa2ac 100644
--- a/dlfcn/dlfcn.h
+++ b/dlfcn/dlfcn.h
@@ -27,16 +27,18 @@
/* Collect various system dependent definitions and declarations. */
#include <bits/dlfcn.h>
+#ifdef __USE_GNU
/* If the first argument of `dlsym' or `dlvsym' is set to RTLD_NEXT
the run-time address of the symbol called NAME in the next shared
object is returned. The "next" relation is defined by the order
the shared objects were loaded. */
-#define RTLD_NEXT ((void *) -1l)
+# define RTLD_NEXT ((void *) -1l)
/* If the first argument to `dlsym' or `dlvsym' is set to RTLD_DEFAULT
the run-time address of the symbol called NAME in the global scope
is returned. */
-#define RTLD_DEFAULT NULL
+# define RTLD_DEFAULT NULL
+#endif
__BEGIN_DECLS