Explorar o código

add support for the HURD

josch %!s(int64=11) %!d(string=hai) anos
pai
achega
5c356f4415
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 4 0
      Global.h
  2. 1 1
      lib/CThreadHelper.cpp

+ 4 - 0
Global.h

@@ -61,6 +61,10 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size.");
 #  define VCMI_UNIX
 #  define VCMI_XDG
 #  define VCMI_FREEBSD
+#elif defined(__GNU__) || defined(__gnu_hurd__) || (defined(__MACH__) && !defined(__APPLE))
+#  define VCMI_UNIX
+#  define VCMI_XDG
+#  define VCMI_HURD
 #elif defined(__APPLE__) && defined(__MACH__)
 #  define VCMI_UNIX
 #  define VCMI_APPLE

+ 1 - 1
lib/CThreadHelper.cpp

@@ -3,7 +3,7 @@
 
 #ifdef VCMI_WINDOWS
 	#include <windows.h>
-#elif !defined(VCMI_APPLE) && !defined(VCMI_FREEBSD)
+#elif !defined(VCMI_APPLE) && !defined(VCMI_FREEBSD) && !defined(VCMI_HURD)
 	#include <sys/prctl.h>
 #endif
 /*