1
Description: Fix FTBFS with gcc 4.7 by fixing a bunch of missing includes.
2
Author: Cyril Brulebois <kibi@debian.org>
3
Bug-Debian: http://bugs.debian.org/667412
7
@@ -7,6 +7,8 @@ embodied in the content of this file are
14
template<class T> class v_array{
16
@@ -47,7 +49,7 @@ template<class T> void push_many(v_array
17
if(v.end+num >= v.end_array)
19
size_t length = v.end - v.begin;
20
- size_t new_length = max(2 * (size_t)(v.end_array - v.begin) + 3,
21
+ size_t new_length = std::max(2 * (size_t)(v.end_array - v.begin) + 3,
22
v.end - v.begin + num);
23
v.begin = (T *)realloc(v.begin,sizeof(T) * new_length);
24
v.end = v.begin + length;
25
--- a/active_interactor.cc
26
+++ b/active_interactor.cc
28
#include <netinet/in.h>
29
#include <netinet/tcp.h>
37
@@ -21,6 +21,7 @@ Alekh Agarwal and John Langford, with he
40
#include <sys/timeb.h>
42
#include "allreduce.h"
47
@@ -8,6 +8,7 @@ embodied in the content of this file are