freebsd-ports/security/nmap/files/patch-liblua-lua523
Olli Hauer 58a9ab423a - update to nmap-6.45
Changelog:
http://nmap.org/changelog.html

Most of the changes of version 6.45 where already
adopted in the last port version
2014-04-15 12:12:02 +00:00

25 lines
781 B
Text

diff -nruEbw -I'[$]Id:.*' ./liblua/Makefile ./liblua/Makefile
--- ./liblua/Makefile 2013-05-02 16:59:06.000000000 +0200
+++ ./liblua/Makefile 2014-01-12 15:13:44.000000000 +0100
@@ -6,8 +6,8 @@
# Your platform. See PLATS for possible values.
PLAT= none
-CC= gcc
-CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
+CC?= gcc
+CFLAGS= -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)
diff -nruEbw -I'[$]Id:.*' ./liblua/liolib.c ./liblua/liolib.c
--- ./liblua/liolib.c 2013-05-02 16:59:06.000000000 +0200
+++ ./liblua/liolib.c 2014-01-12 15:13:21.000000000 +0100
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#define liolib_c
#define LUA_LIB