From a178a9ecc8933eca54bee46ad47cc1dd3d1fea8d Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 26 Nov 2017 22:07:02 +0100 Subject: [PATCH] libre: Add patch to prevent ssize_t redefinition With FORTIFY_SOURCE enabled the compiler errors our when libre defines ssize_t again. Prevent that by adding the proper hint to the header in question. Signed-off-by: Sebastian Kemper --- libs/re/patches/002-fix-redefine-ssize_t.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libs/re/patches/002-fix-redefine-ssize_t.patch diff --git a/libs/re/patches/002-fix-redefine-ssize_t.patch b/libs/re/patches/002-fix-redefine-ssize_t.patch new file mode 100644 index 0000000..5a9e354 --- /dev/null +++ b/libs/re/patches/002-fix-redefine-ssize_t.patch @@ -0,0 +1,11 @@ +--- a/include/re_types.h ++++ b/include/re_types.h +@@ -47,7 +47,7 @@ typedef unsigned long long int uint64 + #endif /* __BIT_TYPES_DEFINED__ */ + + #endif /* __int8_t_defined */ +-#ifndef __ssize_t_defined ++#if !defined(__ssize_t_defined) && !defined(__DEFINED_ssize_t) + typedef long ssize_t; + #define __ssize_t_defined + #endif