Detect GNU/Hurd systems, but treat them as Linux.

This commit is contained in:
Jordi Mallach 2016-07-26 01:34:49 +02:00
parent ca5d34be0f
commit 70f0bda9c7
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
#
UNAME := $(shell uname)
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin SunOS FreeBSD GNU/kFreeBSD NetBSD OpenBSD))
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin SunOS FreeBSD GNU/kFreeBSD NetBSD OpenBSD GNU))
ifeq ($(UNAME),$(filter $(UNAME),Darwin))
OS=darwin
else

View file

@ -12,7 +12,7 @@
/* Identify the current platform I'm not sure how to reliably detect
* Windows but since it is the most common I use it as the default */
#if defined(__linux__)
#if defined(__linux__) || defined(__GNU__)
#define PLATFORM_LINUX (1)
#define PLATFORM_STRING "linux"
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)