Skip to content

Commit

Permalink
Enable LUA_USE_POSIX if possible in bundled Lua
Browse files Browse the repository at this point in the history
Fixes warning:
src/lua/src/loslib.c:60: Warning: the use of `tmpnam' is dangerous, better use `mkstemp'
  • Loading branch information
est31 authored and Zeno- committed Feb 12, 2015
1 parent 66efaaa commit b2f3ffe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lua/CMakeLists.txt
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b2f3ffe

Please sign in to comment.