summaryrefslogtreecommitdiff
path: root/Build/source/libs/lua53/TLpatches/patch-02-FreeBSD
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/lua53/TLpatches/patch-02-FreeBSD')
-rw-r--r--Build/source/libs/lua53/TLpatches/patch-02-FreeBSD12
1 files changed, 12 insertions, 0 deletions
diff --git a/Build/source/libs/lua53/TLpatches/patch-02-FreeBSD b/Build/source/libs/lua53/TLpatches/patch-02-FreeBSD
new file mode 100644
index 00000000000..fc59f4842a3
--- /dev/null
+++ b/Build/source/libs/lua53/TLpatches/patch-02-FreeBSD
@@ -0,0 +1,12 @@
+diff -ur liolib.c.orig liolib.c
+--- liolib.c.orig 2017-10-24 15:16:06.036136550 +0200
++++ liolib.c 2017-10-24 15:16:49.968134748 +0200
+@@ -16,6 +16,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#if defined(HAVE_UNISTD_H)
++#include <unistd.h>
++#endif
+
+ #include "lua.h"