File: gcc-4.7.patch

package info (click to toggle)
netperfmeter 1.1.7-1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,920 kB
  • sloc: sh: 10,063; cpp: 5,748; ansic: 602; makefile: 37
file content (27 lines) | stat: -rw-r--r-- 608 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
Description: add includes needed by gcc 4.7
Origin: vendor
Bug-Debian: http://bugs.debian.org/667295
Forwarded: no
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2012-05-10

--- a/src/cpustatus.cc
+++ b/src/cpustatus.cc
@@ -28,6 +28,7 @@
 #include <assert.h>
 #include <sys/types.h>
 #include <sys/sysctl.h>
+#include <unistd.h>
 #ifdef __FreeBSD__
 #include <sys/proc.h>
 #endif
--- a/src/outputfile.cc
+++ b/src/outputfile.cc
@@ -22,6 +22,7 @@
 #include "outputfile.h"
 
 #include <stdarg.h>
+#include <unistd.h>
 
 
 // ###### Constructor #######################################################