1
0

0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. diff --git a/zconf.h.cmakein b/zconf.h.cmakein
  2. index a7f24cc..a1b359b 100644
  3. --- a/zconf.h.cmakein
  4. +++ b/zconf.h.cmakein
  5. @@ -434,11 +434,19 @@ typedef uLong FAR uLongf;
  6. #endif
  7. #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
  8. -# define Z_HAVE_UNISTD_H
  9. +# if ~(~HAVE_UNISTD_H + 0) == 0 && ~(~HAVE_UNISTD_H + 1) == 1
  10. +# define Z_HAVE_UNISTD_H
  11. +# elif HAVE_UNISTD_H != 0
  12. +# define Z_HAVE_UNISTD_H
  13. +# endif
  14. #endif
  15. #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
  16. -# define Z_HAVE_STDARG_H
  17. +# if ~(~HAVE_STDARG_H + 0) == 0 && ~(~HAVE_STDARG_H + 1) == 1
  18. +# define Z_HAVE_STDARG_H
  19. +# elif HAVE_STDARG_H != 0
  20. +# define Z_HAVE_STDARG_H
  21. +# endif
  22. #endif
  23. #ifdef STDC
  24. diff --git a/zconf.h.in b/zconf.h.in
  25. index 5e1d68a..32f53c8 100644
  26. --- a/zconf.h.in
  27. +++ b/zconf.h.in
  28. @@ -432,11 +432,19 @@ typedef uLong FAR uLongf;
  29. #endif
  30. #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
  31. -# define Z_HAVE_UNISTD_H
  32. +# if ~(~HAVE_UNISTD_H + 0) == 0 && ~(~HAVE_UNISTD_H + 1) == 1
  33. +# define Z_HAVE_UNISTD_H
  34. +# elif HAVE_UNISTD_H != 0
  35. +# define Z_HAVE_UNISTD_H
  36. +# endif
  37. #endif
  38. #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
  39. -# define Z_HAVE_STDARG_H
  40. +# if ~(~HAVE_STDARG_H + 0) == 0 && ~(~HAVE_STDARG_H + 1) == 1
  41. +# define Z_HAVE_STDARG_H
  42. +# elif HAVE_STDARG_H != 0
  43. +# define Z_HAVE_STDARG_H
  44. +# endif
  45. #endif
  46. #ifdef STDC