diff options
author | Ian Lynagh <igloo@earth.li> | 2008-09-04 18:50:42 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-09-04 18:50:42 +0000 |
commit | 930a3e53e87cae37d266925f2908c9d180045311 (patch) | |
tree | b5ca0c4216accf7166570ebdedd6c08e1ef65d88 /includes | |
parent | 60d5d4a844b495f64cc18e15d4081b29324de424 (diff) | |
download | haskell-930a3e53e87cae37d266925f2908c9d180045311.tar.gz |
Define _BSD_SOURCE in Stg.h
This means S_ISSOCK gets defined on Linux
Diffstat (limited to 'includes')
-rw-r--r-- | includes/Stg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/Stg.h b/includes/Stg.h index 022b385e2d..392fd2a0ab 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 |