summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-10-02 21:56:53 +0200
committerDavid Seifert <soap@gentoo.org>2022-10-02 21:56:53 +0200
commitff409022a3100125e4345db345746061a7e887a5 (patch)
tree74f8f66f35f94e260c66004cafeb78f28afc8947 /net-misc/wol
parentapp-text/rarian: update EAPI 6 -> 8 (diff)
downloadgentoo-ff409022a3100125e4345db345746061a7e887a5.tar.gz
gentoo-ff409022a3100125e4345db345746061a7e887a5.tar.bz2
gentoo-ff409022a3100125e4345db345746061a7e887a5.zip
net-misc/wol: fix -Wimplicit-function-declaration
Closes: https://bugs.gentoo.org/871063 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-misc/wol')
-rw-r--r--net-misc/wol/files/wol-0.7.1-musl.patch45
1 files changed, 45 insertions, 0 deletions
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>