Skip to content
Snippets Groups Projects
Commit b2f3ffe3 authored by est31's avatar est31 Committed by Craig Robbins
Browse files

Enable LUA_USE_POSIX if possible in bundled Lua

Fixes warning:
src/lua/src/loslib.c:60: Warning: the use of `tmpnam' is dangerous, better use `mkstemp'
parent 66efaaa9
No related branches found
No related tags found
No related merge requests found
......@@ -47,10 +47,6 @@ else()
endif()
mark_as_advanced(LUA_USE_DLOPEN)
if(DEFAULT_POSIX)
else()
endif()
if(DEFAULT_ANSI)
option(LUA_ANSI "Disable non-ansi features." ON)
else()
......@@ -87,6 +83,10 @@ if(LUA_USE_DLOPEN)
endif(NOT APPLE)
endif(LUA_USE_DLOPEN)
if(DEFAULT_POSIX)
set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_USE_POSIX")
endif(DEFAULT_POSIX)
if(LUA_ANSI)
set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_ANSI")
endif(LUA_ANSI)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment