echo 'Creating brew-patch.diff' cat << EOF >> brew-patch.diff diff --git a/contrib/hbcurl/core.c b/contrib/hbcurl/core.c index 00caaa8..53618ed 100644 --- a/contrib/hbcurl/core.c +++ b/contrib/hbcurl/core.c @@ -53,8 +53,12 @@ */ #include -#include -#include +#if LIBCURL_VERSION_NUM < 0x070A03 +# include +#endif +#if LIBCURL_VERSION_NUM < 0x070C00 +# include +#endif #include "hbapi.h" #include "hbapiitm.h" EOF