Commit 6ef351df authored by Herbert Valerio Riedel's avatar 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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment