summaryrefslogtreecommitdiff
path: root/net-misc/wol/files/wol-0.7.1-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/wol/files/wol-0.7.1-musl.patch')
-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>