mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 18:16:48 -04:00
Unlike libstdc++, libc++ does not leak <unistd.h> into the <c*> headers that examples/read/read.cpp includes. This means that we need to explicitly include <unistd.h> to get getcwd().
10 lines
232 B
C++
10 lines
232 B
C++
--- examples/read/read.cpp
|
|
+++ examples/read/read.cpp
|
|
@@ -43,6 +43,7 @@
|
|
#include <cstdio>
|
|
#include <cstdlib> // MAX_PATH
|
|
#include <climits> // PATH_MAX
|
|
+#include <unistd.h> // getcwd
|
|
|
|
|
|
#if defined(__WIN32__) || defined(WIN32)
|