QQmlTrace: getpid() requires unistd.h
authorShawn Rutledge <shawn.rutledge@digia.com>
Thu, 13 Jun 2013 15:07:38 +0000 (17:07 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 25 Jun 2013 20:52:45 +0000 (22:52 +0200)
Doesn't build on MacOS if you omit this include and uncomment
define QML_ENABLE_TRACE in qqmltrace_p.h

Change-Id: I78ed43b16a006699449202dd234e43be2f7b84fd
Reviewed-by: Alan Alpert <aalpert@blackberry.com>

src/qml/qml/ftw/qqmltrace.cpp

index 98f86da..9bf58c2 100644 (file)
@@ -43,6 +43,7 @@
 
 #ifdef QML_ENABLE_TRACE
 #include <stdio.h>
+#include <unistd.h>
 #endif
 
 QT_BEGIN_NAMESPACE