Skip to content

Commit

Permalink
Add -DLUA_USE_MKSTEMP=1 to Unix builds to stop build warning about tm…
Browse files Browse the repository at this point in the history
…pnam().

Some Unices may not support this; we'll add checks to CMakeLists.txt as
 appropriate.
  • Loading branch information
icculus committed Jan 11, 2010
1 parent c0a27e9 commit d362614
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -96,6 +96,7 @@ ENDIF(BEOS)

IF(UNIX)
ADD_DEFINITIONS(-DPLATFORM_UNIX=1)
ADD_DEFINITIONS(-DLUA_USE_MKSTEMP=1) # as opposed to tmpnam(), yuck!
# No _setjmp/_longjmp in BeOS 5 (or Haiku, at the moment).
IF(NOT BEOS)
ADD_DEFINITIONS(-DLUA_USE_ULONGJMP=1)
Expand Down

0 comments on commit d362614

Please sign in to comment.