From: Berker Peksag Date: Wed, 8 Nov 2017 21:43:14 +0000 (+0300) Subject: bpo-11063: Use more reliable way to check if uuid function exists (GH-4343) X-Git-Tag: v3.7.0a3~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e163d2ced28ade8ff526e8c663faf03c2c0b168;p=thirdparty%2FPython%2Fcpython.git bpo-11063: Use more reliable way to check if uuid function exists (GH-4343) --- diff --git a/configure b/configure index 7944f8fe5d48..0e74828a408c 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 743e0625dc46..1a309c813adb 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.)