From 839ede66d2d296faf5736d442df82b0e8d201240 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 27 Mar 2021 15:45:46 +0000 Subject: Add missing includes git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4070 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/util/randsysrand.c | 4 ++++ lib/util/randsysrandom.c | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'lib/util') diff --git a/lib/util/randsysrand.c b/lib/util/randsysrand.c index bea5ea17..f97a5d3c 100644 --- a/lib/util/randsysrand.c +++ b/lib/util/randsysrand.c @@ -1,5 +1,9 @@ +#include + #include "netpbm/rand.h" + + static void vinit(struct pm_randSt * const randStP) { 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 + #include "netpbm/rand.h" static void -- cgit 1.4.1