Fix build with clang/libc++

This commit is contained in:
Dmitry Marakasov 2013-09-14 03:44:51 +00:00
parent 7f92da8958
commit 99b46e2014
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327215
3 changed files with 25 additions and 3 deletions

View file

@ -26,9 +26,7 @@ PORTDOCS= changelog.txt cvs.txt dependencies.txt faq.txt glossary.txt \
CONFIGURE_REPLACES='s|wx_config|no_&|'
#OPTIONS_DEFINE= DUMB CDAUDIO VORBIS SPEEX FLAC
#OPTIONS_DEFAULT= DUMB CDAUDIO VORBIS SPEEX FLAC
OPTIONS_DEFINE= DUMB CDAUDIO VORBIS SPEEX
OPTIONS_DEFINE= DUMB CDAUDIO VORBIS SPEEX DOCS
OPTIONS_DEFAULT= DUMB CDAUDIO VORBIS SPEEX
DUMB_DESC= DUMB support

View file

@ -0,0 +1,14 @@
--- src/debug.cpp.orig 2006-02-14 07:57:01.000000000 +0300
+++ src/debug.cpp 2013-09-14 06:53:30.679226734 +0400
@@ -1,8 +1,11 @@
#ifdef WIN32
#include <windows.h>
+#else
+ #include "unistd.h"
#endif
#include "debug.h"
+#include <cstdlib>
namespace audiere {

View file

@ -0,0 +1,10 @@
--- src/utility.h.orig 2006-02-14 07:57:01.000000000 +0300
+++ src/utility.h 2013-09-12 07:09:46.054424472 +0400
@@ -10,6 +10,7 @@
#include <map>
#include <string>
#include <utility>
+#include <cstdlib>
#include "audiere.h"
#include "types.h"