[py] define HAVE_ERRNO_H in add_local_macros
authorPaul Brossier <piem@piem.org>
Sun, 23 Dec 2018 02:49:09 +0000 (03:49 +0100)
committerPaul Brossier <piem@piem.org>
Sun, 23 Dec 2018 02:49:09 +0000 (03:49 +0100)
python/lib/moresetuptools.py

index 3fd4e74..299d1f9 100644 (file)
@@ -68,7 +68,7 @@ def add_local_macros(ext, usedouble = False):
     # define macros (waf puts them in build/src/config.h)
     for define_macro in ['HAVE_STDLIB_H', 'HAVE_STDIO_H',
                          'HAVE_MATH_H', 'HAVE_STRING_H',
     # define macros (waf puts them in build/src/config.h)
     for define_macro in ['HAVE_STDLIB_H', 'HAVE_STDIO_H',
                          'HAVE_MATH_H', 'HAVE_STRING_H',
-                         'HAVE_C99_VARARGS_MACROS',
+                         'HAVE_ERRNO_H', 'HAVE_C99_VARARGS_MACROS',
                          'HAVE_LIMITS_H', 'HAVE_STDARG_H',
                          'HAVE_MEMCPY_HACKS']:
         ext.define_macros += [(define_macro, 1)]
                          'HAVE_LIMITS_H', 'HAVE_STDARG_H',
                          'HAVE_MEMCPY_HACKS']:
         ext.define_macros += [(define_macro, 1)]