summaryrefslogtreecommitdiff
path: root/multimedia/libxspf/files/patch-examples-read-read.cpp
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2013-09-14 18:08:03 +0000
committerEd Schouten <ed@FreeBSD.org>2013-09-14 18:08:03 +0000
commit02913580192eb376248a8002f1f223a8a9335efd (patch)
tree6b06009181d8fcd630b68ee2bb9c46ac62a89b30 /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.cpp10
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)