From ff409022a3100125e4345db345746061a7e887a5 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 2 Oct 2022 21:56:53 +0200 Subject: net-misc/wol: fix -Wimplicit-function-declaration Closes: https://bugs.gentoo.org/871063 Signed-off-by: David Seifert --- net-misc/wol/files/wol-0.7.1-musl.patch | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'net-misc/wol') 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 + #endif +-#undef realloc + +-#include +- +-char *malloc (); +-char *realloc (); ++#include + + /* 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 +- +-#if STDC_HEADERS +-# include +-#else +-void *calloc (); +-void *malloc (); +-void *realloc (); +-void free (); +-#endif ++#include + + #if ENABLE_NLS + # include -- cgit v1.2.3-65-gdbad