diff --git a/setup.py b/setup.py index 1c28f86..0f15c5d 100755 --- a/setup.py +++ b/setup.py @@ -34,6 +34,7 @@ def build_extensions(self): _compile = c._compile def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts): + cc_args = cc_args + ["-D_POSIX_C_SOURCE=200112L"] if src.startswith("crfsuite/") else cc_args cc_args = cc_args + ["-std=c99"] if src.endswith(".c") else cc_args return _compile(obj, src, ext, cc_args, extra_postargs, pp_opts)