summaryrefslogtreecommitdiff
path: root/net-misc/wol/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-03 01:13:47 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-03 01:13:47 +0100
commit7748146936014bb364c51e2547982e9f59a5f31a (patch)
tree07d616b7c4f3455728c1226ab7a989051efc7f6a /net-misc/wol/files
parenteb2235d914984bff74c625de4fa4887d4f86f971 (diff)
gentoo auto-resync : 03:10:2022 - 01:13:47
Diffstat (limited to 'net-misc/wol/files')
-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>