diff options
Diffstat (limited to 'sci-libs/plplot/files/plplot-5.15.0_p6-configure-c99.patch')
-rw-r--r-- | sci-libs/plplot/files/plplot-5.15.0_p6-configure-c99.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sci-libs/plplot/files/plplot-5.15.0_p6-configure-c99.patch b/sci-libs/plplot/files/plplot-5.15.0_p6-configure-c99.patch new file mode 100644 index 000000000000..60bb7aaf4501 --- /dev/null +++ b/sci-libs/plplot/files/plplot-5.15.0_p6-configure-c99.patch @@ -0,0 +1,18 @@ +https://bugs.gentoo.org/879761 +https://sourceforge.net/p/plplot/patches/37/ + +Avoid implicitly declaring exit. Future compilers will not support +implicit function declarations, so this cmake probe will always fail. + +--- a/cmake/modules/TestForHighBitCharacters.c ++++ b/cmake/modules/TestForHighBitCharacters.c +@@ -17,6 +17,6 @@ int + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) +- exit(1); +- exit (0); ++ return 1; ++ return 0; + } + |