Skip to content

Commit 1f2b3ed

Browse files
committed
Patch zlib to fix compatibility with latest Xcode
Fixes bazelbuild#17956 Partial commit for third_party/*, see bazelbuild#17987. Closes bazelbuild#17987 Signed-off-by: Yun Peng <[email protected]>
1 parent 0f55d12 commit 1f2b3ed

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

third_party/zlib/gzguts.h

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
* For conditions of distribution and use, see copyright notice in zlib.h
44
*/
55

6+
#ifndef _WIN32
7+
#include <unistd.h>
8+
#endif
9+
610
#ifdef _LARGEFILE64_SOURCE
711
# ifndef _LARGEFILE_SOURCE
812
# define _LARGEFILE_SOURCE 1

third_party/zlib/zlib.patch

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/third_party/zlib/gzguts.h b/third_party/zlib/gzguts.h
2+
index 57faf37165..54f668fcb2 100644
3+
--- a/third_party/zlib/gzguts.h
4+
+++ b/third_party/zlib/gzguts.h
5+
@@ -3,6 +3,10 @@
6+
* For conditions of distribution and use, see copyright notice in zlib.h
7+
*/
8+
9+
+#ifndef _WIN32
10+
+ #include <unistd.h>
11+
+#endif
12+
+
13+
#ifdef _LARGEFILE64_SOURCE
14+
# ifndef _LARGEFILE_SOURCE
15+
# define _LARGEFILE_SOURCE 1

0 commit comments

Comments
 (0)