libmsn: fix build with >=gcc-4.7 by a debian patch

This commit is contained in:
Vladimír Čunát 2014-01-05 11:42:22 +01:00
parent 900c7d29e7
commit 4439188110
2 changed files with 17 additions and 0 deletions

View file

@ -6,5 +6,6 @@ stdenv.mkDerivation rec {
url = "mirror://sourceforge/libmsn/${name}.tar.bz2";
sha256 = "338369c7455b123e84b9a7a858ac0ed2b1dc32e6529f460fdc01d28869a20fde";
};
patches = [ ./fix-ftbfs-gcc4.7.diff ];
buildInputs = [ cmake openssl ];
}

View file

@ -0,0 +1,16 @@
Fix g++ 4.7 build failure
Kudos to Matthias Klose for the patch
Index: libmsn-4.2/msn/util.cpp
===================================================================
--- libmsn-4.2.orig/msn/util.cpp 2009-07-22 19:57:10.000000000 +0000
+++ libmsn-4.2/msn/util.cpp 2012-04-16 20:52:18.068767213 +0000
@@ -25,6 +25,7 @@
#include <msn/util.h>
#include <sstream>
#include <errno.h>
+#include <unistd.h>
#include <cctype>
#include <fstream>
#include <openssl/rand.h>