From 40330fd7c544066a831447fa28f2d6c267f49b22 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 6 Jun 2011 11:25:58 +0200 Subject: [PATCH] Fix build on GNU Hurd. Add missing platform definitions. --- src/base/detect.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/base/detect.h b/src/base/detect.h index 0b66acefc..958356f3d 100644 --- a/src/base/detect.h +++ b/src/base/detect.h @@ -46,6 +46,13 @@ #define CONF_PLATFORM_STRING "linux" #endif +#if defined(__GNU__) || defined(__gnu__) + #define CONF_FAMILY_UNIX 1 + #define CONF_FAMILY_STRING "unix" + #define CONF_PLATFORM_HURD 1 + #define CONF_PLATFORM_STRING "gnu" +#endif + #if defined(MACOSX) || defined(__APPLE__) || defined(__DARWIN__) #define CONF_FAMILY_UNIX 1 #define CONF_FAMILY_STRING "unix"