]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/zlib/0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / zlib / 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
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
8 #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
9 -# define Z_HAVE_UNISTD_H
10 +# if ~(~HAVE_UNISTD_H + 0) == 0 && ~(~HAVE_UNISTD_H + 1) == 1
11 +# define Z_HAVE_UNISTD_H
12 +# elif HAVE_UNISTD_H != 0
13 +# define Z_HAVE_UNISTD_H
14 +# endif
15 #endif
16
17 #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
18 -# define Z_HAVE_STDARG_H
19 +# if ~(~HAVE_STDARG_H + 0) == 0 && ~(~HAVE_STDARG_H + 1) == 1
20 +# define Z_HAVE_STDARG_H
21 +# elif HAVE_STDARG_H != 0
22 +# define Z_HAVE_STDARG_H
23 +# endif
24 #endif
25
26 #ifdef STDC
27 diff --git a/zconf.h.in b/zconf.h.in
28 index 5e1d68a..32f53c8 100644
29 --- a/zconf.h.in
30 +++ b/zconf.h.in
31 @@ -432,11 +432,19 @@ typedef uLong FAR uLongf;
32 #endif
33
34 #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
35 -# define Z_HAVE_UNISTD_H
36 +# if ~(~HAVE_UNISTD_H + 0) == 0 && ~(~HAVE_UNISTD_H + 1) == 1
37 +# define Z_HAVE_UNISTD_H
38 +# elif HAVE_UNISTD_H != 0
39 +# define Z_HAVE_UNISTD_H
40 +# endif
41 #endif
42
43 #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
44 -# define Z_HAVE_STDARG_H
45 +# if ~(~HAVE_STDARG_H + 0) == 0 && ~(~HAVE_STDARG_H + 1) == 1
46 +# define Z_HAVE_STDARG_H
47 +# elif HAVE_STDARG_H != 0
48 +# define Z_HAVE_STDARG_H
49 +# endif
50 #endif
51
52 #ifdef STDC
53