made sword build against current curl (v7.22.0) by removing deprecated includes
svn path=/nixpkgs/trunk/; revision=30248
This commit is contained in:
parent
36c0150c1e
commit
1916578852
@ -13,6 +13,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ pkgconfig icu cluceneCore curl ];
|
||||
|
||||
# because curl/types.h disappeared since at least curl 7.21.7
|
||||
patches = [ ./dont_include_curl_types_h.patch ];
|
||||
|
||||
prePatch = ''
|
||||
patchShebangs .;
|
||||
'';
|
||||
|
@ -0,0 +1,24 @@
|
||||
diff --git a/src/mgr/curlftpt.cpp b/src/mgr/curlftpt.cpp
|
||||
index 7d2fd3c..046291e 100644
|
||||
--- a/src/mgr/curlftpt.cpp
|
||||
+++ b/src/mgr/curlftpt.cpp
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <curl/curl.h>
|
||||
-#include <curl/types.h>
|
||||
#include <curl/easy.h>
|
||||
|
||||
#include <swlog.h>
|
||||
diff --git a/src/mgr/curlhttpt.cpp b/src/mgr/curlhttpt.cpp
|
||||
index b736050..229d4dd 100644
|
||||
--- a/src/mgr/curlhttpt.cpp
|
||||
+++ b/src/mgr/curlhttpt.cpp
|
||||
@@ -25,7 +25,6 @@
|
||||
#include <cctype>
|
||||
|
||||
#include <curl/curl.h>
|
||||
-#include <curl/types.h>
|
||||
#include <curl/easy.h>
|
||||
|
||||
#include <swlog.h>
|
Loading…
Reference in New Issue
Block a user