diffutils: fix gcc7.1.0 build
This commit is contained in:
parent
cd3dcb800a
commit
9acd2e08f1
1 changed files with 11 additions and 0 deletions
11
srcpkgs/diffutils/patches/gcc7-builtin_add_overflow.patch
Normal file
11
srcpkgs/diffutils/patches/gcc7-builtin_add_overflow.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- lib/intprops.h 2016-08-05 01:38:16.000000000 +0200
|
||||
+++ lib/intprops.h 2017-05-08 12:19:47.703724356 +0200
|
||||
@@ -223,7 +223,7 @@
|
||||
: (max) >> (b) < (a))
|
||||
|
||||
/* True if __builtin_add_overflow (A, B, P) works when P is null. */
|
||||
-#define _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL (7 <= __GNUC__)
|
||||
+#define _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL (7 < __GNUC__)
|
||||
|
||||
/* The _GL*_OVERFLOW macros have the same restrictions as the
|
||||
*_RANGE_OVERFLOW macros, except that they do not assume that operands
|
Loading…
Reference in a new issue