sysstat: fix musl compatibility
[feed/packages.git] / net / gnunet / patches / 100-musl-malloc.patch
1 --- a/src/util/gnunet-service-resolver.c
2 +++ b/src/util/gnunet-service-resolver.c
3 @@ -603,7 +603,7 @@ main (int argc, char *const *argv)
4 return ret;
5 }
6
7 -#ifdef LINUX
8 +#if defined(LINUX) && defined(__GLIBC__)
9 #include <malloc.h>
10
11 /**
12 --- a/src/arm/gnunet-service-arm.c
13 +++ b/src/arm/gnunet-service-arm.c
14 @@ -1563,7 +1563,7 @@ main (int argc, char *const *argv)
15 }
16
17
18 -#ifdef LINUX
19 +#if defined(LINUX) && defined(__GLIBC__)
20 #include <malloc.h>
21
22 /**
23 --- a/src/nse/gnunet-service-nse.c
24 +++ b/src/nse/gnunet-service-nse.c
25 @@ -1629,7 +1629,7 @@ main (int argc,
26 }
27
28
29 -#ifdef LINUX
30 +#if defined(LINUX) && defined(__GLIBC__)
31 #include <malloc.h>
32
33 /**
34 --- a/src/regex/gnunet-daemon-regexprofiler.c
35 +++ b/src/regex/gnunet-daemon-regexprofiler.c
36 @@ -382,7 +382,7 @@ main (int argc, char *const *argv)
37 }
38
39
40 -#ifdef LINUX
41 +#if defined(LINUX) && defined(__GLIBC__)
42 #include <malloc.h>
43
44 /**
45 --- a/src/revocation/gnunet-service-revocation.c
46 +++ b/src/revocation/gnunet-service-revocation.c
47 @@ -933,7 +933,7 @@ main (int argc,
48 }
49
50
51 -#ifdef LINUX
52 +#if defined(LINUX) && defined(__GLIBC__)
53 #include <malloc.h>
54
55
56 --- a/src/statistics/gnunet-service-statistics.c
57 +++ b/src/statistics/gnunet-service-statistics.c
58 @@ -1077,7 +1077,7 @@ main (int argc, char *const *argv)
59 &run, NULL)) ? 0 : 1;
60 }
61
62 -#ifdef LINUX
63 +#if defined(LINUX) && defined(__GLIBC__)
64 #include <malloc.h>
65
66 /**
67 --- a/src/topology/gnunet-daemon-topology.c
68 +++ b/src/topology/gnunet-daemon-topology.c
69 @@ -1327,7 +1327,7 @@ main (int argc, char *const *argv)
70 }
71
72
73 -#ifdef LINUX
74 +#if defined(LINUX) && defined(__GLIBC__)
75 #include <malloc.h>
76
77 /**