ccrtp-1.8: fix build with gcc 4.6

This commit is contained in:
Peter Simons 2012-07-07 11:44:28 +02:00
parent 08b29c6f96
commit fda57fdd5e
2 changed files with 23 additions and 1 deletions

View File

@ -10,6 +10,8 @@ stdenv.mkDerivation {
buildInputs = [ openssl pkgconfig libgcrypt commoncpp2 ];
patches = [ ./gcc-4.6-fix.patch ];
meta = {
description = "GNU ccRTP is an implementation of RTP, the real-time transport protocol from the IETF";
homepage = "http://www.gnu.org/software/ccrtp/";

View File

@ -0,0 +1,20 @@
diff -ubr ccrtp-1.8.0-orig/src/ccrtp/sources.h ccrtp-1.8.0/src/ccrtp/sources.h
--- ccrtp-1.8.0-orig/src/ccrtp/sources.h 2010-04-18 20:51:49.000000000 +0200
+++ ccrtp-1.8.0/src/ccrtp/sources.h 2012-07-07 11:42:50.961179016 +0200
@@ -45,6 +45,7 @@
#define CCXX_RTP_SOURCES_H_
#include <string>
+#include <cstddef>
#include <ccrtp/rtcppkt.h>
#ifdef CCXX_NAMESPACES
@@ -406,7 +407,7 @@
public:
typedef std::forward_iterator_tag iterator_category;
typedef Participant value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
typedef const Participant* pointer;
typedef const Participant& reference;