Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
930a3e53
Commit
930a3e53
authored
Sep 04, 2008
by
Ian Lynagh
Browse files
Define _BSD_SOURCE in Stg.h
This means S_ISSOCK gets defined on Linux
parent
60d5d4a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/Stg.h
View file @
930a3e53
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment