mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
bpo-11063: Use more reliable way to check if uuid function exists (GH-4343)
This commit is contained in:
parent
9a10ff4deb
commit
0e163d2ced
3
configure
vendored
3
configure
vendored
@ -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
|
||||
|
||||
;
|
||||
|
@ -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.)
|
||||
|
Loading…
Reference in New Issue
Block a user