mirror of
https://github.com/openwrt/telephony.git
synced 2025-05-01 10:42:13 +08:00

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>
12 lines
331 B
Diff
12 lines
331 B
Diff
--- 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
|