X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FStg.h;h=392fd2a0abb30dfa4c5e1bcd1df22e90ab5f2f82;hb=911a3e09ad48ff8dac5ee1399fe9294edf58d30c;hp=022b385e2def91a8d5b961ae0c02c4850cae4be6;hpb=24ad9cf0325bb5fedc9f0ca8bd70f78096d8d326;p=ghc-hetmet.git 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