From 3bb40f9dc9beaef3e8d11ded78b546d1556c75d2 Mon Sep 17 00:00:00 2001 From: starkos Date: Sun, 11 Jan 2009 21:50:11 +0000 Subject: [PATCH] Added LUA_USE_LINUX and LUA_USE_MACOSX to enable POPEN functionality --- CHANGES.txt | 1 + premake4.lua | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 310a6e24..571ba07d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -24,6 +24,7 @@ RC1 -> RC2 - Fixed separator between library dependencies in C++ makefiles - Added missing os.copyfile() function - Bug: Sometimes takes a long time to complete on Linux +- Enabled Lua popen support on Linux and Mac OS X ----- diff --git a/premake4.lua b/premake4.lua index 71851e95..1fb3f403 100644 --- a/premake4.lua +++ b/premake4.lua @@ -72,7 +72,11 @@ end defines { "_CRT_SECURE_NO_WARNINGS" } configuration "linux" - links { "m" } + defines { "LUA_USE_LINUX" } + links { "m", "dl" } + + configuration "macosx" + defines { "LUA_USE_MACOSX" }