diff options
Diffstat (limited to 'dev-vcs/darcs/files/darcs-2.16.1-curl.patch')
-rw-r--r-- | dev-vcs/darcs/files/darcs-2.16.1-curl.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-vcs/darcs/files/darcs-2.16.1-curl.patch b/dev-vcs/darcs/files/darcs-2.16.1-curl.patch new file mode 100644 index 000000000000..8216ce2e8c4f --- /dev/null +++ b/dev-vcs/darcs/files/darcs-2.16.1-curl.patch @@ -0,0 +1,25 @@ +https://bugs.gentoo.org/737236 + +--- a/src/hscurl.c ++++ b/src/hscurl.c +@@ -11,6 +11,9 @@ + #define ENABLE_PIPELINING + #endif + ++/* workaround for https://bugs.gentoo.org/737236 */ ++#include "cabal_macros.h" ++ + enum RESULT_CODES + { + RESULT_OK = 0, +@@ -46,6 +49,10 @@ struct UrlData + + static int debug = 0; + #ifndef _WIN32 ++#ifndef PACKAGE_VERSION ++/* workaround for https://bugs.gentoo.org/737236 */ ++# define PACKAGE_VERSION CURRENT_PACKAGE_VERSION ++#endif + static const char user_agent[] = + "darcs/" PACKAGE_VERSION " libcurl/" LIBCURL_VERSION; + #else |