avoid using tmpnam() in Lua

Change-Id: I9e3d82445bb26b98ff6a60dff28f9655cc9ea1fb
Reviewed-on: https://skia-review.googlesource.com/102624
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Mike Klein 2018-02-01 17:10:03 -05:00 committed by Skia Commit-Bot
parent 40d442057a
commit bec7ec6497

View File

@ -52,5 +52,11 @@ if (skia_use_system_lua) {
"../externals/lua/lvm.c",
"../externals/lua/lzio.c",
]
if (!is_win) {
# Prefer mkstemp() over tmpnam(). This isn't super important,
# but it does stifle an annoying GNU linker warning.
defines = [ "LUA_USE_POSIX=1" ]
}
}
}