Message308896
So - KISS principle:
This diff shows what can compile:
diff --git a/Modules/_uuidmodule.c b/Modules/_uuidmodule.c
index d4bc3c7..5550705 100644
--- a/Modules/_uuidmodule.c
+++ b/Modules/_uuidmodule.c
@@ -1,7 +1,11 @@
#define PY_SSIZE_T_CLEAN
#include "Python.h"
+#ifndef _AIX
#include <uuid/uuid.h>
+#else
+#include <uuid.h>
+#endif
static PyObject *
@@ -16,7 +20,11 @@ py_uuid_generate_time_safe(void)
#else
uuid_t out;
uuid_generate_time(out);
+#ifndef _AIX
return Py_BuildValue("y#O", (const char *) out, sizeof(out), Py_None);
+#else
+ return Py_BuildValue("y#O", (const char *) &out, sizeof(out), Py_None);
+#endif
#endif
}
However, no uuid_generate_time(). So, ends with:
ld: 0711-317 ERROR: Undefined symbol: .uuid_generate_time |
|
Date |
User |
Action |
Args |
2017-12-21 19:13:40 | Michael.Felt | set | recipients:
+ Michael.Felt |
2017-12-21 19:13:40 | Michael.Felt | set | messageid: <1513883620.07.0.213398074469.issue32399@psf.upfronthosting.co.za> |
2017-12-21 19:13:40 | Michael.Felt | link | issue32399 messages |
2017-12-21 19:13:40 | Michael.Felt | create | |
|