john: fix FTBFS with gcc>=5
This commit is contained in:
parent
51323c5aca
commit
a181917f2f
1 changed files with 13 additions and 0 deletions
13
srcpkgs/john/patches/gcc5.patch
Normal file
13
srcpkgs/john/patches/gcc5.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
--- src/common.h.orig
|
||||||
|
+++ src/common.h
|
||||||
|
@@ -31,7 +31,9 @@ typedef unsigned long long ARCH_WORD_64;
|
||||||
|
#define is_aligned(PTR, CNT) ((((ARCH_WORD)(const void *)(PTR))&(CNT-1))==0)
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) || defined(__INTEL_COMPILER)
|
||||||
|
+#if __GNUC__ >= 5
|
||||||
|
+#define MAYBE_INLINE __attribute__((gnu_inline)) inline
|
||||||
|
+#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) || defined(__INTEL_COMPILER)
|
||||||
|
#define MAYBE_INLINE __attribute__((always_inline)) inline
|
||||||
|
#elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
|
||||||
|
#define MAYBE_INLINE __attribute__((always_inline))
|
Loading…
Add table
Add a link
Reference in a new issue