summaryrefslogtreecommitdiffstats
path: root/Modules/_uuidmodule.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-11-24 09:20:37 (GMT)
committerGitHub <noreply@github.com>2021-11-24 09:20:37 (GMT)
commit8af6481f6b7d43646c47d8fa6cc6d5eb465e2b0f (patch)
treeb0eea88b3769dabc134777ba981a795eff554ac4 /Modules/_uuidmodule.c
parentd5cd2effa69551c6bc7edfef8a414d545dea9117 (diff)
downloadcpython-8af6481f6b7d43646c47d8fa6cc6d5eb465e2b0f.zip
cpython-8af6481f6b7d43646c47d8fa6cc6d5eb465e2b0f.tar.gz
cpython-8af6481f6b7d43646c47d8fa6cc6d5eb465e2b0f.tar.bz2
bpo-45847: Port _uuid to PY_STDLIB_MOD (GH-29741)
Diffstat (limited to 'Modules/_uuidmodule.c')
-rw-r--r--Modules/_uuidmodule.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/Modules/_uuidmodule.c b/Modules/_uuidmodule.c
index 3f33e22..eae38f5 100644
--- a/Modules/_uuidmodule.c
+++ b/Modules/_uuidmodule.c
@@ -6,10 +6,12 @@
#define PY_SSIZE_T_CLEAN
#include "Python.h"
-#ifdef HAVE_UUID_UUID_H
-#include <uuid/uuid.h>
-#elif defined(HAVE_UUID_H)
-#include <uuid.h>
+#if defined(HAVE_UUID_H)
+ // AIX, FreeBSD, libuuid with pkgconf
+ #include <uuid.h>
+#elif defined(HAVE_UUID_UUID_H)
+ // libuuid without pkgconf
+ #include <uuid/uuid.h>
#endif
#ifdef MS_WINDOWS