diff options
Diffstat (limited to 'main/minetest/fix-header-include-namespace.patch')
-rw-r--r-- | main/minetest/fix-header-include-namespace.patch | 22 |
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> |