Description: Allow building on GNU/Hurd
Author: James Cowgill <james410@cowgill.org.uk>
Last-Update: 2013-10-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/cmake/Config.cmake
+++ b/cmake/Config.cmake
@@ -19,6 +19,8 @@
 elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
     # FreeBSD compile path is the same as Linux
     set(LINUX 1)
+elseif(${CMAKE_SYSTEM_NAME} MATCHES "GNU")
+    set(LINUX 1)
 elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
     set(MACOSX 1)
 
--- a/include/SFML/Config.h
+++ b/include/SFML/Config.h
@@ -51,7 +51,7 @@
     // MacOS
     #define CSFML_SYSTEM_MACOS
 
-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__)
 
     // FreeBSD
     #define CSFML_SYSTEM_FREEBSD
