Skip to content

Commit 1cbad91

Browse files
dankmbapt
authored andcommitted
liblua: Use POSIX
Use the posix methods to avoid unsafe function warnings on FreeBSD. Fixes the ports system warning about using tmpnam. There is also USE_DLOPEN, but I'm not sure pkg needs to ever dlopen something in its lua functions, so I'm leaving that one out.
1 parent 5fe818c commit 1cbad91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

external/liblua/Makefile.autosetup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ SRCS= lapi.c \
3737
loadlib.c \
3838
linit.c
3939

40-
LOCAL_CFLAGS= -I$(top_srcdir)/external/lua/src
40+
LOCAL_CFLAGS= -I$(top_srcdir)/external/lua/src -DLUA_USE_POSIX
4141

4242
include $(MK)/static-lib.mk

0 commit comments

Comments
 (0)