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:
parent
40d442057a
commit
bec7ec6497
6
third_party/lua/BUILD.gn
vendored
6
third_party/lua/BUILD.gn
vendored
@ -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" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user