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 <nsoffer(a)redhat.com>
---
python/setup.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/python/setup.py b/python/setup.py
index 369451c..0f3d683 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -9,10 +9,11 @@ from distutils.core import setup, Extension
sanlocklib = ['sanlock']
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)
version = None
with open('../VERSION') as f:
--
2.17.2