aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar wolfgang <unknown>2005-08-04 02:09:36 +0000
committerGravatar wolfgang <unknown>2005-08-04 02:09:36 +0000
commit95fc2f922dac4e380fe492b0a569723176b464b5 (patch)
tree405e8ea447be6035de6c84ff5733fbf1b23d4df6 /include
parent7fd41f87817cd390d318b16f672cac8a8a809377 (diff)
[project @ 2005-08-04 02:09:36 by wolfgang]
Check for RTLD_DEFAULT in dlfcn.h and use it if it is available. (On Mac OS X its value is -2, and using NULL instead does not work.) MERGE TO STABLE
Diffstat (limited to 'include')
-rw-r--r--include/HsUnix.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h
index cce4e5e..51bf111 100644
--- a/include/HsUnix.h
+++ b/include/HsUnix.h
@@ -103,6 +103,10 @@ INLINE int __hsunix_wstopsig (int stat) { return WSTOPSIG(stat); }
INLINE void *__hsunix_rtldNext (void) {return RTLD_NEXT;}
#endif
+#ifdef HAVE_RTLDDEFAULT
+INLINE void *__hsunix_rtldDefault (void) {return RTLD_DEFAULT;}
+#endif
+
/* O_SYNC doesn't exist on Mac OS X and (at least some versions of) FreeBSD,
fall back to O_FSYNC, which should be the same */
#ifndef O_SYNC