[vlmc-devel] Fix build for GCC 4.7
Hugo Beauzée-Luyssen
git at videolan.org
Mon Apr 16 10:43:23 CEST 2012
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sat Apr 14 15:51:48 2012 +0200| [7aa9ee1c52884db4a0a7bb36dac7028849e0a995] | committer: Hugo Beauzée-Luyssen
Fix build for GCC 4.7
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=7aa9ee1c52884db4a0a7bb36dac7028849e0a995
---
src/Project/WorkspaceWorker.cpp | 2 ++
src/vlmc.h | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/Project/WorkspaceWorker.cpp b/src/Project/WorkspaceWorker.cpp
index 377b87c..6eba89b 100644
--- a/src/Project/WorkspaceWorker.cpp
+++ b/src/Project/WorkspaceWorker.cpp
@@ -26,6 +26,8 @@
#include "SettingsManager.h"
#include <cerrno>
+#include <unistd.h>
+
#include <QFile>
#include <QFileInfo>
diff --git a/src/vlmc.h b/src/vlmc.h
index 7f6cb4b..7f154d8 100644
--- a/src/vlmc.h
+++ b/src/vlmc.h
@@ -31,6 +31,7 @@
#endif
#ifdef Q_OS_UNIX
+#include <unistd.h>
#define SleepMS( x ) usleep( (x) * 1000 )
#else
#define SleepMS( x ) Sleep( x )
More information about the Vlmc-devel
mailing list