[Libguestfs] [PATCH nbdkit 3/3] python: Remove extraneous static keyword
Richard W.M. Jones
rjones at redhat.com
Mon Mar 23 12:28:12 UTC 2020
From: Yifan Gu <gyf304 at gmail.com>
The create_nbdkit_module function is intended to be exported, therefore
the static keyword is not needed and prevents building on MSYS2.
---
plugins/python/python.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/python/python.c b/plugins/python/python.c
index a1a0438b..adc1aaa5 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -224,7 +224,7 @@ static struct PyModuleDef moduledef = {
NULL
};
-static PyMODINIT_FUNC
+PyMODINIT_FUNC
create_nbdkit_module (void)
{
PyObject *m;
--
2.25.0
More information about the Libguestfs
mailing list