aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/lua
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lua')
-rw-r--r--third_party/lua/BUILD.gn6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/lua/BUILD.gn b/third_party/lua/BUILD.gn
index d6578bacea..436cff15c8 100644
--- a/third_party/lua/BUILD.gn
+++ b/third_party/lua/BUILD.gn
@@ -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" ]
+ }
}
}