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