forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
0f55d12
commit 1f2b3ed
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/third_party/zlib/gzguts.h b/third_party/zlib/gzguts.h | ||
index 57faf37165..54f668fcb2 100644 | ||
--- a/third_party/zlib/gzguts.h | ||
+++ b/third_party/zlib/gzguts.h | ||
@@ -3,6 +3,10 @@ | ||
* For conditions of distribution and use, see copyright notice in zlib.h | ||
*/ | ||
|
||
+#ifndef _WIN32 | ||
+ #include <unistd.h> | ||
+#endif | ||
+ | ||
#ifdef _LARGEFILE64_SOURCE | ||
# ifndef _LARGEFILE_SOURCE | ||
# define _LARGEFILE_SOURCE 1 |