]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/hunspell/0001_fix_unistd.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / hunspell / 0001_fix_unistd.patch
1 From 9f33c841afe51be517eaea318d46985c596c94ff Mon Sep 17 00:00:00 2001
2 From: Mikhail Paulyshka <me@mixaill.tk>
3 Date: Tue, 25 Jul 2017 01:58:39 +0300
4 Subject: [PATCH] tools/hzip: fix build with MSVC
5
6 ---
7 src/tools/hzip.cxx | 2 ++
8 1 file changed, 2 insertions(+)
9
10 diff --git a/src/tools/hzip.cxx b/src/tools/hzip.cxx
11 index ef1864f..d284c64 100644
12 --- a/src/tools/hzip.cxx
13 +++ b/src/tools/hzip.cxx
14 @@ -41,7 +41,9 @@
15 #include <stdio.h>
16 #include <stdlib.h>
17 #include <string.h>
18 +#ifdef HAVE_UNISTD_H
19 #include <unistd.h>
20 +#endif /* HAVE_UNISTD_H */
21 #include <string>
22 #include <sys/stat.h>
23
24 --
25 2.12.2.windows.2
26
27 From 840f920bcd370668b9e788b3c8272eca1f20ce3a Mon Sep 17 00:00:00 2001
28 From: Mikhail Paulyshka <me@mixaill.tk>
29 Date: Tue, 25 Jul 2017 01:55:13 +0300
30 Subject: [PATCH] tools/unmunch: fix build with MSVC
31
32 ---
33 src/tools/unmunch.cxx | 2 ++
34 1 file changed, 2 insertions(+)
35
36 diff --git a/src/tools/unmunch.cxx b/src/tools/unmunch.cxx
37 index 44b4cb1..2144370 100644
38 --- a/src/tools/unmunch.cxx
39 +++ b/src/tools/unmunch.cxx
40 @@ -42,7 +42,9 @@
41 #include <ctype.h>
42 #include <string.h>
43 #include <string>
44 +#ifdef HAVE_UNISTD_H
45 #include <unistd.h>
46 +#endif /* HAVE_UNISTD_H */
47 #include <stdlib.h>
48 #include <stdint.h>
49 #include <stdio.h>
50 --
51 2.12.2.windows.2
52
53 From 1c231aa84624082a0fa52d59be8c449bfe1fadd1 Mon Sep 17 00:00:00 2001
54 From: Mikhail Paulyshka <me@mixaill.tk>
55 Date: Tue, 25 Jul 2017 01:50:21 +0300
56 Subject: [PATCH] tools/munch: fix build with MSVC
57
58 Include <unistd.h> only if exists
59 ---
60 src/tools/munch.cxx | 2 ++
61 1 file changed, 2 insertions(+)
62
63 diff --git a/src/tools/munch.cxx b/src/tools/munch.cxx
64 index 17fc6fd..8503abe 100644
65 --- a/src/tools/munch.cxx
66 +++ b/src/tools/munch.cxx
67 @@ -40,7 +40,9 @@
68 #include <ctype.h>
69 #include <string.h>
70 #include <string>
71 +#ifdef HAVE_UNISTD_H
72 #include <unistd.h>
73 +#endif /* HAVE_UNISTD_H */
74 #include <stdlib.h>
75 #include <stdint.h>
76 #include <stdio.h>
77 --
78 2.12.2.windows.2