From 1c38c7a67e9d4d68e27c6ad183d1cccbb5596ddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:51:57 +0200 Subject: Adding debian version 8.2-1.3. Signed-off-by: Daniel Baumann --- debian/patches/rl-attribute.diff | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 debian/patches/rl-attribute.diff (limited to 'debian/patches/rl-attribute.diff') diff --git a/debian/patches/rl-attribute.diff b/debian/patches/rl-attribute.diff new file mode 100644 index 0000000..451c0fd --- /dev/null +++ b/debian/patches/rl-attribute.diff @@ -0,0 +1,32 @@ +rl-attribute.dpatch by + +Do not redefine __attribute__, define macro __rl_attribute__ + +--- a/readline.h ++++ b/readline.h +@@ -405,7 +405,7 @@ extern void rl_deactivate_mark (void); + extern int rl_mark_active_p (void); + + #if defined (USE_VARARGS) && defined (PREFER_STDARG) +-extern int rl_message (const char *, ...) __attribute__((__format__ (printf, 1, 2))); ++extern int rl_message (const char *, ...) __rl_attribute__((__format__ (printf, 1, 2))); + #else + extern int rl_message (); + #endif +--- a/rlstdc.h ++++ b/rlstdc.h +@@ -36,10 +36,10 @@ + # endif + #endif + +-#ifndef __attribute__ +-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) +-# define __attribute__(x) +-# endif ++#if defined(__GNUC__) && __GNUC__ >= 2 ++# define __rl_attribute__(x) __attribute__(x) ++#else ++# define __rl_attribute__(x) + #endif + + /* Moved from config.h.in because readline.h:rl_message depends on these -- cgit v1.2.3