diff options
Diffstat (limited to 'lib/util/randsysrandom.c')
-rw-r--r-- | lib/util/randsysrandom.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util/randsysrandom.c b/lib/util/randsysrandom.c index 97a1376e..3e38b0ae 100644 --- a/lib/util/randsysrandom.c +++ b/lib/util/randsysrandom.c @@ -1,3 +1,9 @@ +#define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */ +#define _XOPEN_SOURCE 500 /* Make sure random() is in stdlib.h */ +#define _BSD_SOURCE /* Make sure random() is in stdlib.h */ + +#include <stdlib.h> + #include "netpbm/rand.h" static void |