Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alfredo Di Napoli
GHC
Commits
6ef351df
Commit
6ef351df
authored
Dec 04, 2015
by
Herbert Valerio Riedel
🕺
Browse files
On AIX we need -D_BSD defined in <Stg.h>
As otherwise <math.h> includes <stdlib.h> which breaks compilation of .hc files
parent
cd9f3bf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/Stg.h
View file @
6ef351df
...
...
@@ -48,6 +48,11 @@
// on Linux
# define _BSD_SOURCE
// On AIX we need _BSD defined, otherwise <math.h> includes <stdlib.h>
# if defined(_AIX)
# define _BSD 1
# endif
// '_BSD_SOURCE' is deprecated since glibc-2.20
// in favour of '_DEFAULT_SOURCE'
# define _DEFAULT_SOURCE
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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