zconf.patch 669 B

1234567891011121314151617181920212223242526
  1. ifdef __GNUC__ is needed to support GCC 4 on Precise and Trusty used by
  2. BUILD_APACHE_BUNDLE task:
  3. https://a.yandex-team.ru/arc/trunk/arcadia/sandbox/projects/BuildApacheBundle/__init__.py?rev=5292353#L36
  4. --- a/zconf.h
  5. +++ b/zconf.h
  6. @@ -433,8 +433,16 @@ typedef uLong FAR uLongf;
  7. -#if 1 /* was set to #if 1 by ./configure */
  8. +#ifdef __GNUC__
  9. # define Z_HAVE_UNISTD_H
  10. +#else
  11. +# if __has_include(<unistd.h>)
  12. +# define Z_HAVE_UNISTD_H
  13. +# endif
  14. #endif
  15. -#if 1 /* was set to #if 1 by ./configure */
  16. -# define Z_HAVE_STDARG_H
  17. +#ifdef __GNUC__
  18. +# define Z_HAVE_UNISTD_H
  19. +#else
  20. +# if __has_include(<stdarg.h>)
  21. +# define Z_HAVE_STDARG_H
  22. +# endif
  23. #endif