telegram-cli: remove patch (relates to Homebrew/homebrew-core#138155)
[Homebrew/formula-patches.git] / wput / 0.6.2.patch
blobf439774bdca7df2ac3de07b3a8dfe548d1dc8f25
1 diff --git a/src/memdbg.c b/src/memdbg.c
2 index 560bd7c..9e69eef 100644
3 --- a/src/memdbg.c
4 +++ b/src/memdbg.c
5 @@ -1,5 +1,7 @@
6 #include <stdio.h>
7 +#ifndef __APPLE__
8 #include <malloc.h>
9 +#endif
10 #include <fcntl.h>
11 #ifndef WIN32
12 #include <sys/socket.h>
13 diff --git a/src/socketlib.c b/src/socketlib.c
14 index ab77d2b..c728ed9 100644
15 --- a/src/socketlib.c
16 +++ b/src/socketlib.c
17 @@ -20,7 +20,9 @@
18 * It is meant to provide some library functions. The only required external depency
19 * the printip function that is provided in utils.c */
21 +#ifndef __APPLE__
22 #include <malloc.h>
23 +#endif
24 #include <string.h>
25 #include <fcntl.h>
26 #include <errno.h>