File: gcc-4.7.patch

package info (click to toggle)
madlib 1.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,196 kB
  • sloc: cpp: 39,851; sh: 10,041; makefile: 473
file content (34 lines) | stat: -rw-r--r-- 699 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Matthias Klose <doko@debian.org>
Subject: Fix build failure with GCC 4.7
Bug-Debian: https://bugs.debian.org/667267

--- a/Benchmarks/meshInfo/main.cc
+++ b/Benchmarks/meshInfo/main.cc
@@ -12,6 +12,7 @@
 
 #include "MAdLib.h"
 
+#include <unistd.h>
 #include <iostream>
 using std::cout;
 #include <sys/time.h>
--- a/Benchmarks/moveIt/main.cc
+++ b/Benchmarks/moveIt/main.cc
@@ -21,6 +21,7 @@
 
 #include "MAdLib.h"
 
+#include <unistd.h>
 #include <iostream>
 #include <sstream>
 #include <math.h>
--- a/Common/MAdResourceManager.cc
+++ b/Common/MAdResourceManager.cc
@@ -14,6 +14,7 @@
 #include "MAdMessage.h"
 
 #include <fstream>
+#include <unistd.h>
 
 #ifdef PARALLEL
  #include <mpi.h>