]> granicus.if.org Git - python/commitdiff
bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511)
authorMichael Felt <aixtools@users.noreply.github.com>
Sat, 9 Jun 2018 21:59:02 +0000 (15:59 -0600)
committerNed Deily <nad@python.org>
Sat, 9 Jun 2018 21:59:02 +0000 (17:59 -0400)
Misc/NEWS.d/next/Library/2018-06-07-18-55-35.bpo-32493.1Bte62.rst [new file with mode: 0644]
configure
configure.ac

diff --git a/Misc/NEWS.d/next/Library/2018-06-07-18-55-35.bpo-32493.1Bte62.rst b/Misc/NEWS.d/next/Library/2018-06-07-18-55-35.bpo-32493.1Bte62.rst
new file mode 100644 (file)
index 0000000..3d8bb3e
--- /dev/null
@@ -0,0 +1,2 @@
+Correct test for ``uuid_enc_be`` availability in ``configure.ac``.
+Patch by Michael Felt.
\ No newline at end of file
index 5a2afe57f535e885d15188b4374fcb00b8a5f55b..e0389649ae0655ec17cf48725d2267cc1da4b0b2 100755 (executable)
--- a/configure
+++ b/configure
@@ -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
 
   ;
index c844eb105c374d5dcefecdb1f42803306a60bf05..b5beb0857475bd949970bcad9b22b695ec5ede62 100644 (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.)