forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-lang/R: Backport patch for zlib-1.2.10 compatibility
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=604676 Package-Manager: Portage-2.3.3, Repoman-2.3.1 Signed-off-by: Justin Lecher <[email protected]>
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 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,20 @@ | ||
Index: R.m4 | ||
=================================================================== | ||
--- m4/R.m4 (revision 71152) | ||
+++ m4/R.m4 (revision 71889) | ||
@@ -3105,10 +3105,11 @@ | ||
#include <string.h> | ||
#include <zlib.h> | ||
int main() { | ||
-#ifdef ZLIB_VERSION | ||
-/* Work around Debian bug: it uses 1.2.3.4 even though there was no such | ||
- version on the master site zlib.net */ | ||
- exit(strncmp(ZLIB_VERSION, "1.2.5", 5) < 0); | ||
+#ifdef ZLIB_VERNUM | ||
+ if (ZLIB_VERNUM < 0x1250) { | ||
+ exit(1); | ||
+ } | ||
+ exit(0); | ||
#else | ||
exit(1); | ||
#endif |