From 1358a8302fd570b809cf505385c63c4ef8d17948 Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Mon, 20 Feb 2012 17:31:30 -0500 Subject: [PATCH] Portability Manually include unistd.h in a couple of places get things building with gcc 4.7, which removed it from the global namespace. This fixes the following build errors: src/A3.cpp:283:3: error: 'STDIN_FILENO' was not declared in this scope src/commands/CmdEdit.cpp:598:30: error: 'getpid' was not declared in this scope src/commands/CmdEdit.cpp:603:47: error: 'chdir' was not declared in this scope Signed-off-by: Paul Beckingham --- src/A3.cpp | 1 + src/commands/CmdEdit.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/A3.cpp b/src/A3.cpp index 1515c7201..5f334e7f8 100644 --- a/src/A3.cpp +++ b/src/A3.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include diff --git a/src/commands/CmdEdit.cpp b/src/commands/CmdEdit.cpp index 2c870ef08..f8d2542ed 100644 --- a/src/commands/CmdEdit.cpp +++ b/src/commands/CmdEdit.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include