From 34d716947ca17917a4b30a4d280ba72bd3223a14 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 20 Dec 2009 18:41:55 +0100 Subject: [PATCH] Properly compile on Debian kFreeBSD. --- src/Makefile | 3 +++ src/luaconf.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index cd246af8..209758fe 100644 --- a/src/Makefile +++ b/src/Makefile @@ -211,6 +211,9 @@ else ifeq (Linux,$(TARGET_SYS)) TARGET_XLIBS+= -ldl endif + ifeq (GNU/kFreeBSD,$(TARGET_SYS)) + TARGET_XLIBS+= -ldl + endif endif endif 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 @@ #define LUA_DL_DLL #elif defined(__linux__) || defined(__solaris__) || defined(__CYGWIN__) || \ defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ - (defined(__MACH__) && defined(__APPLE__)) + defined(__FreeBSD_kernel__) || (defined(__MACH__) && defined(__APPLE__)) #define LUA_USE_POSIX #define LUA_DL_DLOPEN #endif