freebsd-ports/multimedia/libxspf/files/patch-examples-read-read.cpp
Ed Schouten 0291358019 Unbreak libxspf on HEAD.
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().
2013-09-14 18:08:03 +00:00

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)