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 <sebastian_ml@gmx.net>
This commit is contained in:
parent
53d727b592
commit
a178a9ecc8
1 changed files with 11 additions and 0 deletions
11
libs/re/patches/002-fix-redefine-ssize_t.patch
Normal file
11
libs/re/patches/002-fix-redefine-ssize_t.patch
Normal file
|
@ -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
|
Loading…
Reference in a new issue