diff options
author | Ed Schouten <ed@FreeBSD.org> | 2013-09-14 18:08:03 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2013-09-14 18:08:03 +0000 |
commit | 02913580192eb376248a8002f1f223a8a9335efd (patch) | |
tree | 6b06009181d8fcd630b68ee2bb9c46ac62a89b30 /multimedia/libxspf/files/patch-examples-read-read.cpp | |
parent | - Fix build without libstdc++ by removing hardcoded libstdc++ linkage [1] (diff) |
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().
Notes
Notes:
svn path=/head/; revision=327310
Diffstat (limited to 'multimedia/libxspf/files/patch-examples-read-read.cpp')
-rw-r--r-- | multimedia/libxspf/files/patch-examples-read-read.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/multimedia/libxspf/files/patch-examples-read-read.cpp b/multimedia/libxspf/files/patch-examples-read-read.cpp new file mode 100644 index 000000000000..bfeb7f2d62a0 --- /dev/null +++ b/multimedia/libxspf/files/patch-examples-read-read.cpp @@ -0,0 +1,10 @@ +--- 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) |