Skip to content

Commit

Permalink
bpo-11063: Use more reliable way to check if uuid function exists (py…
Browse files Browse the repository at this point in the history
  • Loading branch information
berkerpeksag authored Nov 8, 2017
1 parent 9a10ff4 commit 0e163d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
;
Expand Down
3 changes: 1 addition & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down

0 comments on commit 0e163d2

Please sign in to comment.