diff options
author | Svante Signell <svante.signell@telia.com> | 2013-05-12 12:22:20 +0100 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 10:57:41 +0100 |
commit | 982f409cecd73c70a0a7c5e6559696776b6c6dd5 (patch) | |
tree | f868f6c1234e5960f064d7e2ecab32174b14f221 | |
parent | b8b66865c8ff4c756fe3544decb5504dbc2abdf7 (diff) |
Add support for the GNU/Hurd architecture
[As with GNU/kFreeBSD, it's treated as "Linux": all three use the GNU libc
and runtime linker, which is mostly what matters for ioquake3. -smcv]
Bug-Debian: http://bugs.debian.org/679330
Reviewed-by: Simon McVittie <smcv@debian.org>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/qcommon/q_platform.h | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -305,7 +305,7 @@ MKDIR=mkdir EXTRA_FILES= CLIENT_EXTRA_FILES= -ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu")) +ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu" "gnu")) ifeq ($(ARCH),x86_64) LIB=lib64 diff --git a/src/qcommon/q_platform.h b/src/qcommon/q_platform.h index 39d1672c..f04bf433 100644 --- a/src/qcommon/q_platform.h +++ b/src/qcommon/q_platform.h @@ -170,14 +170,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA //================================================================= LINUX === -#if defined(__linux__) || defined(__FreeBSD_kernel__) +#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__) #include <endian.h> #if defined(__linux__) #define OS_STRING "linux" -#else +#elif defined(__FreeBSD_kernel__) #define OS_STRING "kFreeBSD" +#else +#define OS_STRING "GNU" #endif #define ID_INLINE inline |