commit: ff409022a3100125e4345db345746061a7e887a5 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Sun Oct 2 19:56:53 2022 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sun Oct 2 19:56:53 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff409022
net-misc/wol: fix -Wimplicit-function-declaration Closes: https://bugs.gentoo.org/871063 Signed-off-by: David Seifert <soap <AT> gentoo.org> net-misc/wol/files/wol-0.7.1-musl.patch | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/net-misc/wol/files/wol-0.7.1-musl.patch b/net-misc/wol/files/wol-0.7.1-musl.patch index c7c0dc6028ca..3b9098554370 100644 --- a/net-misc/wol/files/wol-0.7.1-musl.patch +++ b/net-misc/wol/files/wol-0.7.1-musl.patch @@ -15,3 +15,48 @@ +# endif #endif /* not GETLINE_H_ */ +--- a/lib/realloc.c ++++ b/lib/realloc.c +@@ -20,21 +20,15 @@ + #if HAVE_CONFIG_H + # include <config.h> + #endif +-#undef realloc + +-#include <sys/types.h> +- +-char *malloc (); +-char *realloc (); ++#include <stdlib.h> + + /* Change the size of an allocated block of memory P to N bytes, + with error checking. If N is zero, change it to 1. If P is NULL, + use malloc. */ + + char * +-rpl_realloc (p, n) +- char *p; +- size_t n; ++rpl_realloc (char *p, size_t n) + { + if (n == 0) + n = 1; +--- a/lib/xmalloc.c ++++ b/lib/xmalloc.c +@@ -20,15 +20,7 @@ + #endif + + #include <sys/types.h> +- +-#if STDC_HEADERS +-# include <stdlib.h> +-#else +-void *calloc (); +-void *malloc (); +-void *realloc (); +-void free (); +-#endif ++#include <stdlib.h> + + #if ENABLE_NLS + # include <libintl.h>
