diff options
author | daurnimator <quae@daurnimator.com> | 2018-07-20 15:12:24 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-07-20 15:12:51 +1000 |
commit | c0afc0f51a0ed540bc2ada0ecbc01fa0e3b8b790 (patch) | |
tree | 6a87e196d48c39e9b3c5a5e9463cb2ccf029afd1 | |
parent | 099af5e395b843f86694005704111049f22e5d39 (diff) | |
download | luaossl-c0afc0f51a0ed540bc2ada0ecbc01fa0e3b8b790.tar.gz luaossl-c0afc0f51a0ed540bc2ada0ecbc01fa0e3b8b790.tar.bz2 luaossl-c0afc0f51a0ed540bc2ada0ecbc01fa0e3b8b790.zip |
config.h.guess: Fix expansion-to-defined warnings
-rw-r--r-- | config.h.guess | 13 |
1 files 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 |