]> git.ipfire.org Git - thirdparty/util-linux.git/commit
pylibmount: properly mark initialization function
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 10 Nov 2022 03:05:30 +0000 (04:05 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 10 Nov 2022 03:12:10 +0000 (04:12 +0100)
commit9798f7ffb1818648ead93a98d4d041825d693562
tree9d8cf9a4f7ca79d3daa0c780fc7cacef1ee19790
parent375ccf08e53feff1f111a9124ae6ab2593c76b90
pylibmount: properly mark initialization function

The module initialization function is supposed to only public function
in a module.
Newer versions of meson use -fvisibility=hidden and expected this
function to be marked with PyMODINIT_FUNC [0].

As this does not hurt on autotools either, let's use it everywhere.

[0] https://mesonbuild.com/Release-notes-for-0-63-0.html#python-extension-modules-now-build-with-hidden-visibility
libmount/python/pylibmount.c