summaryrefslogtreecommitdiffstats
path: root/src/socket_wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket_wrapper.c')
-rw-r--r--src/socket_wrapper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index 53ca288..46d8b0c 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -282,6 +282,7 @@ static int libc_dlopen(void)
return 0;
}
+
for (libc_hnd = NULL, i = 10; libc_hnd == NULL; i--) {
char soname[256] = {0};
@@ -289,6 +290,11 @@ static int libc_dlopen(void)
libc_hnd = dlopen(soname, flags);
}
+ /* Maybe we're on MacOSX */
+ if (libc_hnd == NULL) {
+ libc_hnd = dlopen("libc.dylib", flags);
+ }
+
if (libc_hnd == NULL) {
SWRAP_LOG(SWRAP_LOG_ERROR,
"Failed to dlopen %s.%u: %s\n",