summaryrefslogtreecommitdiff
path: root/MLKInterpreter.m
diff options
context:
space:
mode:
Diffstat (limited to 'MLKInterpreter.m')
-rw-r--r--MLKInterpreter.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/MLKInterpreter.m b/MLKInterpreter.m
index a98fb41..deb92eb 100644
--- a/MLKInterpreter.m
+++ b/MLKInterpreter.m
@@ -48,7 +48,9 @@
#ifdef _WIN32
#include <windows.h>
#else
- #define _BSD_SOURCE
+ #ifndef _BSD_SOURCE
+ #define _BSD_SOURCE
+ #endif
#undef _POSIX_C_SOURCE // needed at least on Mac OS X for RTLD_DEFAULT to be defined
#include <dlfcn.h>
#endif