From c0afc0f51a0ed540bc2ada0ecbc01fa0e3b8b790 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 20 Jul 2018 15:12:24 +1000 Subject: config.h.guess: Fix expansion-to-defined warnings --- config.h.guess | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/config.h.guess b/config.h.guess index db17fc7..ee08de7 100644 --- a/config.h.guess +++ b/config.h.guess @@ -610,7 +610,12 @@ #endif #ifndef HAVE_DECL_RANDOM_UUID -#define HAVE_DECL_RANDOM_UUID (HAVE_SYS_SYSCTL_H && defined __linux__) /* RANDOM_UUID is an enum, not macro */ +/* RANDOM_UUID is an enum, not macro */ +#if (HAVE_SYS_SYSCTL_H && defined __linux__) +#define HAVE_DECL_RANDOM_UUID 1 +#else +#define HAVE_DECL_RANDOM_UUID 0 +#endif #endif #ifndef HAVE_DECL_STRERROR_R @@ -622,7 +627,11 @@ #endif #ifndef HAVE_DECL_SYS_GETRANDOM -#define HAVE_DECL_SYS_GETRANDOM (defined SYS_getrandom) +#ifdef SYS_getrandom +#define HAVE_DECL_SYS_GETRANDOM 1 +#else +#define HAVE_DECL_SYS_GETRANDOM 0 +#endif #endif -- cgit v1.2.3-59-g8ed1b