bpo-11063: Use more reliable way to check if uuid function exists (GH-4343)
This commit is contained in:
parent
9a10ff4deb
commit
0e163d2ced
|
@ -9522,8 +9522,7 @@ main ()
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifndef uuid_generate_time_safe
|
#ifndef uuid_generate_time_safe
|
||||||
uuid_t out;
|
void *x = uuid_generate_time_safe
|
||||||
uuid_generate_time_safe(out);
|
|
||||||
#endif
|
#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_MSG_CHECKING(for uuid_generate_time_safe)
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <uuid/uuid.h>]], [[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <uuid/uuid.h>]], [[
|
||||||
#ifndef uuid_generate_time_safe
|
#ifndef uuid_generate_time_safe
|
||||||
uuid_t out;
|
void *x = uuid_generate_time_safe
|
||||||
uuid_generate_time_safe(out);
|
|
||||||
#endif
|
#endif
|
||||||
]])],
|
]])],
|
||||||
[AC_DEFINE(HAVE_UUID_GENERATE_TIME_SAFE, 1, Define if uuid_generate_time_safe() exists.)
|
[AC_DEFINE(HAVE_UUID_GENERATE_TIME_SAFE, 1, Define if uuid_generate_time_safe() exists.)
|
||||||
|
|
Loading…
Reference in New Issue