summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile3
-rw-r--r--src/luaconf.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index cd246af8..209758fe 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -211,6 +211,9 @@ else
211 ifeq (Linux,$(TARGET_SYS)) 211 ifeq (Linux,$(TARGET_SYS))
212 TARGET_XLIBS+= -ldl 212 TARGET_XLIBS+= -ldl
213 endif 213 endif
214 ifeq (GNU/kFreeBSD,$(TARGET_SYS))
215 TARGET_XLIBS+= -ldl
216 endif
214endif 217endif
215endif 218endif
216 219
diff --git a/src/luaconf.h b/src/luaconf.h
index 3c85cacd..02930a2f 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -15,7 +15,7 @@
15#define LUA_DL_DLL 15#define LUA_DL_DLL
16#elif defined(__linux__) || defined(__solaris__) || defined(__CYGWIN__) || \ 16#elif defined(__linux__) || defined(__solaris__) || defined(__CYGWIN__) || \
17 defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ 17 defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
18 (defined(__MACH__) && defined(__APPLE__)) 18 defined(__FreeBSD_kernel__) || (defined(__MACH__) && defined(__APPLE__))
19#define LUA_USE_POSIX 19#define LUA_USE_POSIX
20#define LUA_DL_DLOPEN 20#define LUA_DL_DLOPEN
21#endif 21#endif