From 0a88d8a218f6f79c0fa48ce9a4cc1826356b8688 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Thu, 9 Nov 2017 00:16:03 +0300 Subject: [PATCH] bpo-11063: Use more reliable way to detect if it exists --- configure | 3 +-- configure.ac | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 7944f8fe5d48c3..0e74828a408ca4 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 743e0625dc4695..1a309c813adb96 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.)