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-FreeBSD13
1 files changed, 13 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..c197854cbd4
--- /dev/null
+++ b/Build/source/libs/lua53/TLpatches/patch-02-FreeBSD
@@ -0,0 +1,13 @@
+diff -u liolib.c.orig liolib.c
+--- liolib.c.orig 2020-10-04 12:06:03.579772529 +0200
++++ liolib.c 2020-10-04 12:12:12.061843306 +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"
+