mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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 <paul@beckingham.net>
This commit is contained in:
parent
39998d5cc5
commit
1358a8302f
2 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
#include <sstream>
|
||||
#include <algorithm>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/select.h>
|
||||
#include <Context.h>
|
||||
#include <Directory.h>
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <Duration.h>
|
||||
#include <Context.h>
|
||||
#include <i18n.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue