From 31924883622457ea8ef788991759ff7a9ab8efc3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 09:34:32 +0200 Subject: Merging debian version 1:0.1.9998svn3604+dfsg-1. Signed-off-by: Daniel Baumann --- debian/patches/string.patch | 106 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 debian/patches/string.patch (limited to 'debian/patches/string.patch') diff --git a/debian/patches/string.patch b/debian/patches/string.patch new file mode 100644 index 0000000..52887c1 --- /dev/null +++ b/debian/patches/string.patch @@ -0,0 +1,106 @@ +Description: Use string.h to fix implicit-function-declaration issues +Author: Gianfranco Costamagna +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066204 +Last-Update: 2024-03-28 + +--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/lib/utils.c ++++ kbuild-0.1.9998svn3589+dfsg/src/sed/lib/utils.c +@@ -27,7 +27,9 @@ + + #ifdef HAVE_STRINGS_H + # include +-#else ++#endif /* HAVE_STRING_H */ ++ ++#ifdef HAVE_STRING_H + # include + #endif /* HAVE_STRINGS_H */ + +--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/sed/execute.c ++++ kbuild-0.1.9998svn3589+dfsg/src/sed/sed/execute.c +@@ -46,9 +46,12 @@ extern int errno; + + #ifdef HAVE_STRINGS_H + # include +-#else ++#endif /* HAVE_STRING_H */ ++ ++#ifdef HAVE_STRING_H + # include +-#endif /*HAVE_STRINGS_H*/ ++#endif /* HAVE_STRINGS_H */ ++ + #ifdef HAVE_MEMORY_H + # include + #endif +--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/sed/fmt.c ++++ kbuild-0.1.9998svn3589+dfsg/src/sed/sed/fmt.c +@@ -23,6 +23,14 @@ + #include + #include + ++#ifdef HAVE_STRINGS_H ++# include ++#endif /* HAVE_STRING_H */ ++ ++#ifdef HAVE_STRING_H ++# include ++#endif /* HAVE_STRINGS_H */ ++ + #if HAVE_LIMITS_H + # include + #endif +--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/sed/mbcs.c ++++ kbuild-0.1.9998svn3589+dfsg/src/sed/sed/mbcs.c +@@ -18,6 +18,14 @@ + #include "sed.h" + #include + ++#ifdef HAVE_STRINGS_H ++# include ++#endif /* HAVE_STRING_H */ ++ ++#ifdef HAVE_STRING_H ++# include ++#endif /* HAVE_STRINGS_H */ ++ + int mb_cur_max; + + #ifdef HAVE_MBRTOWC +--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/sed/regexp.c ++++ kbuild-0.1.9998svn3589+dfsg/src/sed/sed/regexp.c +@@ -17,6 +17,14 @@ + + #include "sed.h" + ++#ifdef HAVE_STRINGS_H ++# include ++#endif /* HAVE_STRING_H */ ++ ++#ifdef HAVE_STRING_H ++# include ++#endif /* HAVE_STRINGS_H */ ++ + #include + #include + #ifdef HAVE_STDLIB_H +--- kbuild-0.1.9998svn3589+dfsg.orig/src/sed/sed/sed.c ++++ kbuild-0.1.9998svn3589+dfsg/src/sed/sed/sed.c +@@ -24,11 +24,15 @@ + + + #include ++ + #ifdef HAVE_STRINGS_H + # include +-#else ++#endif /* HAVE_STRING_H */ ++ ++#ifdef HAVE_STRING_H + # include +-#endif /*HAVE_STRINGS_H*/ ++#endif /* HAVE_STRINGS_H */ ++ + #ifdef HAVE_MEMORY_H + # include + #endif -- cgit v1.2.3