1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: Allow building on GNU/Hurd
Author: James Cowgill <james410@cowgill.org.uk>
Last-Update: 2013-10-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/cmake/Config.cmake
+++ b/cmake/Config.cmake
@@ -18,6 +18,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.hpp
+++ b/include/SFML/Config.hpp
@@ -54,7 +54,7 @@
// MacOS
#define SFML_SYSTEM_MACOS
-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__)
// FreeBSD
#define SFML_SYSTEM_FREEBSD
|