aboutsummaryrefslogtreecommitdiff
path: root/python/python-axolotl-curve25519/901f4fb12e1290b72fbd26ea1f40755b079fa241.patch
diff options
context:
space:
mode:
Diffstat (limited to 'python/python-axolotl-curve25519/901f4fb12e1290b72fbd26ea1f40755b079fa241.patch')
-rw-r--r--python/python-axolotl-curve25519/901f4fb12e1290b72fbd26ea1f40755b079fa241.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/python/python-axolotl-curve25519/901f4fb12e1290b72fbd26ea1f40755b079fa241.patch b/python/python-axolotl-curve25519/901f4fb12e1290b72fbd26ea1f40755b079fa241.patch
new file mode 100644
index 0000000000..ff69ade1cf
--- /dev/null
+++ b/python/python-axolotl-curve25519/901f4fb12e1290b72fbd26ea1f40755b079fa241.patch
@@ -0,0 +1,24 @@
+From 901f4fb12e1290b72fbd26ea1f40755b079fa241 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Hanno=20B=C3=B6ck?= <hanno@gentoo.org>
+Date: Fri, 2 Dec 2022 10:51:43 +0100
+Subject: [PATCH] The 4th variable of PyModuleDef is an int, not a pointer:
+ https://docs.python.org/3/c-api/module.html#c.PyModuleDef
+
+Fixes compilation with clang.
+---
+ curve25519module.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/curve25519module.c b/curve25519module.c
+index f4bd3d7..cf8bb45 100644
+--- a/curve25519module.c
++++ b/curve25519module.c
+@@ -158,7 +158,7 @@ curve25519_functions[] = {
+ PyModuleDef_HEAD_INIT,
+ "axolotl_curve25519",
+ NULL,
+- NULL,
++ 0,
+ curve25519_functions,
+ };
+