summaryrefslogtreecommitdiff
path: root/net-misc/wol/files/wol-0.7.1-musl.patch
blob: 3b90985543701ff0388ab28412427a80830a59be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
--- a/lib/getline.h
+++ b/lib/getline.h
@@ -27,6 +27,7 @@
 #  endif
 # endif
 
+# if defined (__GLIBC__)
 # if __GLIBC__ < 2
 int
 getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
@@ -34,5 +35,6 @@
 int
 getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
 # endif
+# 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>