aboutsummaryrefslogtreecommitdiffstats
path: root/main/minetest/fix-header-include-namespace.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-09-02 14:27:59 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-03 08:56:48 +0200
commit2ee0f5e264747e22a700381f9ca5a3162552a4c6 (patch)
tree96dda2a686df1df1a6d78238356d797250ca5589 /main/minetest/fix-header-include-namespace.patch
parent599e6b2a7059fcfda17012b9e65e016ee90673ff (diff)
downloadaports-2ee0f5e264747e22a700381f9ca5a3162552a4c6.tar.bz2
aports-2ee0f5e264747e22a700381f9ca5a3162552a4c6.tar.xz
main/minetest: enable curl support
Diffstat (limited to 'main/minetest/fix-header-include-namespace.patch')
-rw-r--r--main/minetest/fix-header-include-namespace.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/minetest/fix-header-include-namespace.patch b/main/minetest/fix-header-include-namespace.patch
new file mode 100644
index 0000000000..d2f1cac76c
--- /dev/null
+++ b/main/minetest/fix-header-include-namespace.patch
@@ -0,0 +1,22 @@
+diff --git a/src/porting.h b/src/porting.h
+index 492c9d3..39499ef 100644
+--- a/src/porting.h
++++ b/src/porting.h
+@@ -59,6 +59,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
+ #else
+ #include <unistd.h>
+ #include <stdint.h> //for uintptr_t
++ #include <sys/time.h>
++ #include <time.h>
+
+ #if (defined(linux) || defined(__linux) || defined(__GNU__)) && !defined(_GNU_SOURCE)
+ #define _GNU_SOURCE
+@@ -190,8 +192,6 @@ void initIrrlicht(irr::IrrlichtDevice * );
+ }
+
+ #else // Posix
+-#include <sys/time.h>
+-#include <time.h>
+ #if defined(__MACH__) && defined(__APPLE__)
+ #include <mach/clock.h>
+ #include <mach/mach.h>