Przeglądaj źródła

Properly compile on Debian kFreeBSD.

Mike Pall 16 lat temu
rodzic
commit
34d716947c
2 zmienionych plików z 4 dodań i 1 usunięć
  1. 3 0
      src/Makefile
  2. 1 1
      src/luaconf.h

+ 3 - 0
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
 

+ 1 - 1
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