From ef51a60086c96ae49935034f5408f17f56fd1515 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Mon, 21 Oct 2019 18:18:45 +0200 Subject: [PATCH] wput: fix patch --- Formula/wput.rb | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/Formula/wput.rb b/Formula/wput.rb index dfe4e45f5d..9fd4c4053c 100644 --- a/Formula/wput.rb +++ b/Formula/wput.rb @@ -17,7 +17,10 @@ class Wput < Formula # The patch is to skip inclusion of malloc.h only on OSX. Upstream: # https://sourceforge.net/p/wput/patches/22/ - patch :DATA + patch do + url "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/wput/0.6.2.patch" + sha256 "a3c47a12344b6f67a5120dd4f838172e2af04f4d97765cc35d22570bcf6ab727" + end def install system "./configure", "--disable-debug", "--disable-dependency-tracking", @@ -31,31 +34,3 @@ class Wput < Formula system "#{bin}/wput", "--version" end end - -__END__ -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 -+#ifndef __APPLE__ - #include -+#endif - #include - #ifndef WIN32 - #include -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 -+#endif - #include - #include - #include