From 8b918e08da50255cf1486f14a252f4cd46a1c143 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Jun 17 2019 14:04:28 +0000 Subject: python: Use C99 standard Using C99 enables useful features[1] is old enough so it should not be a portability issue. [1] https://fedoramagazine.org/c99-features-gcc-fedora/ Signed-off-by: Nir Soffer --- diff --git a/python/setup.py b/python/setup.py index 369451c..0f3d683 100644 --- a/python/setup.py +++ b/python/setup.py @@ -11,6 +11,7 @@ sanlock = Extension(name='sanlock', sources=['sanlock.c'], include_dirs=['../src'], library_dirs=['../src'], + extra_compile_args=["-std=c99"], extra_link_args=['-fPIE', '-Wl,-z,relro,-z,now'], libraries=sanlocklib)