aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-20 18:41:55 +0100
committerMike Pall <mike>2009-12-20 18:41:55 +0100
commit34d716947ca17917a4b30a4d280ba72bd3223a14 (patch)
treea869746104a262452b29211dd3fa8500fd5a8db0
parenta1d4d05f2ce7ed3c8ab0978ffb3b6055ceaaa7eb (diff)
downloadluajit-34d716947ca17917a4b30a4d280ba72bd3223a14.tar.gz
luajit-34d716947ca17917a4b30a4d280ba72bd3223a14.tar.bz2
luajit-34d716947ca17917a4b30a4d280ba72bd3223a14.zip
Properly compile on Debian kFreeBSD.
-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