summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-03-19 14:09:08 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-03-19 14:09:08 +0000
commit06aab47a527dbcfc7a2eacdb10a8b3a001641aa3 (patch)
tree3b3ee6369d0d6f965166c665a4a7367d940b1111
parent3231ab0a0e7c7713f161e24aa4a9f9e7d2f170a0 (diff)
libs/lua52: Build fix for FreeBSD
git-svn-id: svn://tug.org/texlive/trunk@33229 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/libs/lua52/lua-5.2.3-PATCHES/ChangeLog5
-rw-r--r--Build/source/libs/lua52/lua-5.2.3-PATCHES/patch-02-FreeBSD13
-rw-r--r--Build/source/libs/lua52/lua-5.2.3/src/liolib.c3
3 files changed, 21 insertions, 0 deletions
diff --git a/Build/source/libs/lua52/lua-5.2.3-PATCHES/ChangeLog b/Build/source/libs/lua52/lua-5.2.3-PATCHES/ChangeLog
index b2a675717af..66d53cade81 100644
--- a/Build/source/libs/lua52/lua-5.2.3-PATCHES/ChangeLog
+++ b/Build/source/libs/lua52/lua-5.2.3-PATCHES/ChangeLog
@@ -1,5 +1,10 @@
2014-02-13 Peter Breitenlohner <peb@mppmu.mpg.de>
+ * patch-02-FreeBSD (new): Required for FreeBSD.
+ From Nikola Lecic <nikola.lecic@anthesphoria.net>.
+
+2014-02-13 Peter Breitenlohner <peb@mppmu.mpg.de>
+
* patch-01-utf-8 (new): Allow utf-8 chars in identifiers.
From Luigi Scarso <luigi.scarso@gmail.com>.
diff --git a/Build/source/libs/lua52/lua-5.2.3-PATCHES/patch-02-FreeBSD b/Build/source/libs/lua52/lua-5.2.3-PATCHES/patch-02-FreeBSD
new file mode 100644
index 00000000000..625480b4732
--- /dev/null
+++ b/Build/source/libs/lua52/lua-5.2.3-PATCHES/patch-02-FreeBSD
@@ -0,0 +1,13 @@
+diff -ur lua-5.2.3.orig/src/liolib.c lua-5.2.3/src/liolib.c
+--- lua-5.2.3.orig/src/liolib.c 2013-04-12 20:48:47.000000000 +0200
++++ lua-5.2.3/src/liolib.c 2014-03-19 15:03:49.727286832 +0100
+@@ -19,6 +19,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#if defined(HAVE_UNISTD_H)
++#include <unistd.h>
++#endif
+
+ #define liolib_c
+ #define LUA_LIB
diff --git a/Build/source/libs/lua52/lua-5.2.3/src/liolib.c b/Build/source/libs/lua52/lua-5.2.3/src/liolib.c
index 2a4ec4aa344..481630101c0 100644
--- a/Build/source/libs/lua52/lua-5.2.3/src/liolib.c
+++ b/Build/source/libs/lua52/lua-5.2.3/src/liolib.c
@@ -19,6 +19,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
#define liolib_c
#define LUA_LIB