Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ced0adb

Browse files
authored
bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511) (GH-7567)
1 parent ea62ce7 commit ced0adb

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Correct test for ``uuid_enc_be`` availability in ``configure.ac``.
2+
Patch by Michael Felt.

configure

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9632,9 +9632,7 @@ main ()
96329632
{
96339633
96349634
#ifndef uuid_enc_be
9635-
uuid_t uuid;
9636-
unsigned char buf[sizeof(uuid)];
9637-
uuid_enc_be(buf, &uuid);
9635+
void *x = uuid_enc_be
96389636
#endif
96399637
96409638
;

configure.ac

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,9 +2716,7 @@ void *x = uuid_create
27162716
AC_MSG_CHECKING(for uuid_enc_be)
27172717
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <uuid.h>]], [[
27182718
#ifndef uuid_enc_be
2719-
uuid_t uuid;
2720-
unsigned char buf[sizeof(uuid)];
2721-
uuid_enc_be(buf, &uuid);
2719+
void *x = uuid_enc_be
27222720
#endif
27232721
]])],
27242722
[AC_DEFINE(HAVE_UUID_ENC_BE, 1, Define if uuid_enc_be() exists.)

0 commit comments

Comments
 (0)