From a239d6fa04a35be84720a4516e8164dc634bb3d3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 15 Feb 2024 16:52:22 -0800 Subject: Use autoconf instead of platform ifdefs to check for lrand48() Signed-off-by: Alan Coopersmith --- tests.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests.c') diff --git a/tests.c b/tests.c index a15be2d..b612a85 100644 --- a/tests.c +++ b/tests.c @@ -2,6 +2,10 @@ ** */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include @@ -21,7 +25,7 @@ #define PI 3.14159265 #endif -#ifdef SYSV +#ifdef HAVE_LRAND48 #define random lrand48 #endif -- cgit v1.2.3