bpo-11063: Use more reliable way to check if uuid function exists (GH-4343)

This commit is contained in:
Berker Peksag 2017-11-09 00:43:14 +03:00 committed by GitHub
parent 9a10ff4deb
commit 0e163d2ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

3
configure vendored
View File

@ -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
;

View File

@ -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 <uuid/uuid.h>]], [[
#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.)