-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The main issue is that iostreams uses a quoted include for zlib, while the Bazel Registry version requires system includes. Fix it by patching the zlib header to be a system include.
- Loading branch information
1 parent
64bf481
commit 42859ed
Showing
4 changed files
with
18 additions
and
69 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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
Use a system includes instead of a local includes for zlib, as the | ||
Bazel Central Registry version of zlib enforces that only system | ||
includes are used. | ||
|
||
--- a/libs/iostreams/src/zlib.cpp | ||
+++ b/libs/iostreams/src/zlib.cpp | ||
@@ -17,7 +17,7 @@ | ||
#include <boost/throw_exception.hpp> | ||
#include <boost/iostreams/detail/config/dyn_link.hpp> | ||
#include <boost/iostreams/filter/zlib.hpp> | ||
-#include "zlib.h" // Jean-loup Gailly's and Mark Adler's "zlib.h" header. | ||
+#include <zlib.h> // Jean-loup Gailly's and Mark Adler's "zlib.h" header. | ||
// To configure Boost to work with zlib, see the | ||
// installation instructions here: | ||
// https://boost.org/libs/iostreams/doc/index.html?path=7 |