diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-21 13:04:20 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-21 13:04:20 +0000 |
commit | f5a622ba784bb66ee85eb669a821801c5e135ed8 (patch) | |
tree | b385c400b3bcebc972419f425e15cf34f4d679c2 /dev-util/kbuild/files | |
parent | 1ad2c51f9cc380c164b03ed03acda1c3fcc0a476 (diff) |
gentoo auto-resync : 21:11:2022 - 13:04:20
Diffstat (limited to 'dev-util/kbuild/files')
-rw-r--r-- | dev-util/kbuild/files/kbuild-0.1.9998.3499-implicit-function-declaration.patch | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/dev-util/kbuild/files/kbuild-0.1.9998.3499-implicit-function-declaration.patch b/dev-util/kbuild/files/kbuild-0.1.9998.3499-implicit-function-declaration.patch new file mode 100644 index 000000000000..2d25eacb9826 --- /dev/null +++ b/dev-util/kbuild/files/kbuild-0.1.9998.3499-implicit-function-declaration.patch @@ -0,0 +1,74 @@ +Add a few includes to fix this warning: -Wimplicit-function-declaration +Bug: https://bugs.gentoo.org/882143 + +--- a/src/sed/lib/utils.c ++++ b/src/sed/lib/utils.c +@@ -27,7 +27,8 @@ + + #ifdef HAVE_STRINGS_H + # include <strings.h> +-#else ++#endif ++#ifdef HAVE_STRING_H + # include <string.h> + #endif /* HAVE_STRINGS_H */ + +--- a/src/sed/sed/execute.c ++++ b/src/sed/sed/execute.c +@@ -46,7 +46,8 @@ + + #ifdef HAVE_STRINGS_H + # include <strings.h> +-#else ++#endif ++#ifdef HAVE_STRING_H + # include <string.h> + #endif /*HAVE_STRINGS_H*/ + #ifdef HAVE_MEMORY_H +--- a/src/sed/sed/fmt.c ++++ b/src/sed/sed/fmt.c +@@ -22,6 +22,7 @@ + #include <stdio.h> + #include <ctype.h> + #include <sys/types.h> ++#include <string.h> + + #if HAVE_LIMITS_H + # include <limits.h> +--- a/src/sed/sed/mbcs.c ++++ b/src/sed/sed/mbcs.c +@@ -17,6 +17,7 @@ + + #include "sed.h" + #include <stdlib.h> ++#include <string.h> + + int mb_cur_max; + +--- a/src/sed/sed/regexp.c ++++ b/src/sed/sed/regexp.c +@@ -22,6 +22,9 @@ + #ifdef HAVE_STDLIB_H + # include <stdlib.h> + #endif ++#ifdef HAVE_STRING_H ++# include <string.h> ++#endif + + #ifdef gettext_noop + # define N_(String) gettext_noop(String) +--- a/src/sed/sed/sed.c ++++ b/src/sed/sed/sed.c +@@ -26,9 +26,10 @@ + #include <stdio.h> + #ifdef HAVE_STRINGS_H + # include <strings.h> +-#else +-# include <string.h> + #endif /*HAVE_STRINGS_H*/ ++#ifdef HAVE_STRING_H ++# include <string.h> ++#endif /*HAVE_STRING_H*/ + #ifdef HAVE_MEMORY_H + # include <memory.h> + #endif |