Properly compile on Debian kFreeBSD.

master
Mike Pall 2009-12-20 18:41:55 +01:00
parent a1d4d05f2c
commit 34d716947c
2 changed files with 4 additions and 1 deletions

View File

@ -211,6 +211,9 @@ else
ifeq (Linux,$(TARGET_SYS))
TARGET_XLIBS+= -ldl
endif
ifeq (GNU/kFreeBSD,$(TARGET_SYS))
TARGET_XLIBS+= -ldl
endif
endif
endif

View File

@ -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