]> granicus.if.org Git - python/commitdiff
bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511) ...
authorNed Deily <nad@python.org>
Sat, 9 Jun 2018 22:19:57 +0000 (18:19 -0400)
committerGitHub <noreply@github.com>
Sat, 9 Jun 2018 22:19:57 +0000 (18:19 -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 f5bea4ff0598671c65cefbd473783da903a6ec7a..5187c6ff2b95d4568ead32e70b35cc25a83bec86 100755 (executable)
--- a/configure
+++ b/configure
@@ -9632,9 +9632,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 67cf817456df75f7ed0f518da5ea8d3d2eae24b2..b13728e37d7b1bde2622e5a4b662f8597c3f8996 100644 (file)
@@ -2716,9 +2716,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.)