From 930a3e53e87cae37d266925f2908c9d180045311 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 4 Sep 2008 18:50:42 +0000 Subject: [PATCH] Define _BSD_SOURCE in Stg.h This means S_ISSOCK gets defined on Linux --- includes/Stg.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/Stg.h b/includes/Stg.h index 022b385..392fd2a 100644 --- a/includes/Stg.h +++ b/includes/Stg.h @@ -31,9 +31,13 @@ */ #ifndef IN_STG_CODE # define IN_STG_CODE 1 -# define _ISOC99_SOURCE + // Turn on C99 for .hc code. This gives us the INFINITY and NAN // constants from math.h, which we occasionally need to use in .hc (#1861) +# define _ISOC99_SOURCE + +// Turning on _ISOC99_SOURCE means S_ISSOCK gets defined on Linux +# define _BSD_SOURCE #endif #if IN_STG_CODE == 0 -- 1.7.10.4