From 0e163d2ced28ade8ff526e8c663faf03c2c0b168 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Thu, 9 Nov 2017 00:43:14 +0300 Subject: [PATCH] bpo-11063: Use more reliable way to check if uuid function exists (GH-4343) --- configure | 3 +-- configure.ac | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 7944f8fe5d4..0e74828a408 100755 --- a/configure +++ b/configure @@ -9522,8 +9522,7 @@ main () { #ifndef uuid_generate_time_safe -uuid_t out; -uuid_generate_time_safe(out); +void *x = uuid_generate_time_safe #endif ; diff --git a/configure.ac b/configure.ac index 743e0625dc4..1a309c813ad 100644 --- a/configure.ac +++ b/configure.ac @@ -2680,8 +2680,7 @@ AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX AC_MSG_CHECKING(for uuid_generate_time_safe) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ #ifndef uuid_generate_time_safe -uuid_t out; -uuid_generate_time_safe(out); +void *x = uuid_generate_time_safe #endif ]])], [AC_DEFINE(HAVE_UUID_GENERATE_TIME_SAFE, 1, Define if uuid_generate_time_safe() exists.)