freebsd-ports/security/nmap/files/patch-liblua__liolib.c
Olli Hauer 78344c76b2 - Fix build for FreeBSD-7.4
(nmap 6.25 contains liblua5.2.1)

 Requested by Martin Olsson <martin.olsson@sentor.se> per PM

PR:		175210
Submitted by:	Jürgen <caligula@primamail.de>
Obtained from:	http://lua-users.org/lists/lua-l/2011-12/msg00708.html
2013-01-13 22:43:17 +00:00

15 lines
438 B
C

Fix build for FreeBSD-7.4
nmap 6.25 contains liblua5.2.1
http://lua-users.org/lists/lua-l/2011-12/msg00708.html
==============================================================
--- ./liblua/liolib.c.orig 2013-01-09 18:47:49.000000000 +0100
+++ ./liblua/liolib.c 2013-01-09 18:48:29.000000000 +0100
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/types.h>
#define liolib_c
#define LUA_LIB