projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60d5d4a
)
Define _BSD_SOURCE in Stg.h
author
Ian Lynagh
<igloo@earth.li>
Thu, 4 Sep 2008 18:50:42 +0000
(18:50 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Thu, 4 Sep 2008 18:50:42 +0000
(18:50 +0000)
This means S_ISSOCK gets defined on Linux
includes/Stg.h
patch
|
blob
|
history
diff --git
a/includes/Stg.h
b/includes/Stg.h
index
022b385
..
392fd2a
100644
(file)
--- 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