diff options
Diffstat (limited to 'homebrew/wput/patches.sh')
-rwxr-xr-x | homebrew/wput/patches.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/homebrew/wput/patches.sh b/homebrew/wput/patches.sh new file mode 100755 index 000000000..70c7e39c1 --- /dev/null +++ b/homebrew/wput/patches.sh @@ -0,0 +1,29 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git a/src/memdbg.c b/src/memdbg.c +index 560bd7c..9e69eef 100644 +--- a/src/memdbg.c ++++ b/src/memdbg.c +@@ -1,5 +1,7 @@ + #include <stdio.h> ++#ifndef __APPLE__ + #include <malloc.h> ++#endif + #include <fcntl.h> + #ifndef WIN32 + #include <sys/socket.h> +diff --git a/src/socketlib.c b/src/socketlib.c +index ab77d2b..c728ed9 100644 +--- a/src/socketlib.c ++++ b/src/socketlib.c +@@ -20,7 +20,9 @@ + * It is meant to provide some library functions. The only required external depency + * the printip function that is provided in utils.c */ + ++#ifndef __APPLE__ + #include <malloc.h> ++#endif + #include <string.h> + #include <fcntl.h> + #include <errno.h> +EOF |