[issue32627] Header dependent _uuid build failure on Fedora 27
Adam
report at bugs.python.org
Mon May 7 04:54:18 EDT 2018
Adam <adam at NetBSD.org> added the comment:
Some systems might have both uuid.h and uuid/uuid.h. For example, NetBSD provides /usr/include/uuid.h, and one might also install libuuid from a package, and the latter has uuid/uuid.h.
To fix this, do not include both files, when both have been detected.
Here is a patch:
--- Modules/_uuidmodule.c.orig
+++ Modules/_uuidmodule.c
@@ -3,8 +3,7 @@
#include "Python.h"
#ifdef HAVE_UUID_UUID_H
#include <uuid/uuid.h>
-#endif
-#ifdef HAVE_UUID_H
+#elif defined(HAVE_UUID_H)
#include <uuid.h>
#endif
----------
nosy: +adam at NetBSD.org
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32627>
_______________________________________
More information about the Python-bugs-list
mailing list