Skip to content

Commit bcb483d

Browse files
committed
Re-add __USE_GNU for include of dlfcn.h which is required for definition of RTLD_DEFAULT
1 parent ae74a3f commit bcb483d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

closure/runtime.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
#include <stdlib.h>
1313
#include <string.h>
1414
#include <stdint.h>
15+
#if TARGET_OS_LINUX
16+
#define __USE_GNU
1517
#include <dlfcn.h>
18+
#else
19+
#include <dlfcn.h>
20+
#endif
1621
#if __has_include(<os/assumes.h>)
1722
#include <os/assumes.h>
1823
#else

0 commit comments

Comments
 (0)