bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511)

This commit is contained in:
Michael Felt 2018-06-09 15:59:02 -06:00 committed by Ned Deily
parent 463d1890bb
commit 20cd5c6e21
3 changed files with 4 additions and 6 deletions

View File

@ -0,0 +1,2 @@
Correct test for ``uuid_enc_be`` availability in ``configure.ac``.
Patch by Michael Felt.

4
configure vendored
View File

@ -9714,9 +9714,7 @@ main ()
{
#ifndef uuid_enc_be
uuid_t uuid;
unsigned char buf[sizeof(uuid)];
uuid_enc_be(buf, &uuid);
void *x = uuid_enc_be
#endif
;

View File

@ -2782,9 +2782,7 @@ void *x = uuid_create
AC_MSG_CHECKING(for uuid_enc_be)
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <uuid.h>]], [[
#ifndef uuid_enc_be
uuid_t uuid;
unsigned char buf[sizeof(uuid)];
uuid_enc_be(buf, &uuid);
void *x = uuid_enc_be
#endif
]])],
[AC_DEFINE(HAVE_UUID_ENC_BE, 1, Define if uuid_enc_be() exists.)