From a181917f2f2b4b71dec0f021d60ae1eef7bff7e8 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 12 Apr 2017 11:57:51 +0200 Subject: [PATCH] john: fix FTBFS with gcc>=5 --- srcpkgs/john/patches/gcc5.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/john/patches/gcc5.patch diff --git a/srcpkgs/john/patches/gcc5.patch b/srcpkgs/john/patches/gcc5.patch new file mode 100644 index 00000000000..d6665333e7a --- /dev/null +++ b/srcpkgs/john/patches/gcc5.patch @@ -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))