summaryrefslogtreecommitdiff
path: root/games/zsnes/0012-Fix-build-with-gcc-4.7.patch
blob: 2c29f5be4348ff511cdc81bcb2ad93eebc9e03f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Etienne Millon <etienne.millon@gmail.com>
Date: Thu, 12 Apr 2012 18:01:45 +0200
Subject: Fix build with gcc 4.7

Headers in the new C++ library do not implicitly import unistd.h, so it is
necessary to do it in the source.

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667429
---
 src/tools/depbuild.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tools/depbuild.cpp b/src/tools/depbuild.cpp
index 1e4bbc5..ea0854c 100644
--- a/src/tools/depbuild.cpp
+++ b/src/tools/depbuild.cpp
@@ -25,6 +25,7 @@ This program generates dependencies for all C/C++/Assembly files
 #include <string>
 #include <cstdio>
 #include <cstdlib>
+#include <unistd.h>
 using namespace std;
 
 #include "fileutil.h"