aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-02-16 16:17:21 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-03-05 06:33:15 +0000
commitea70dd579522667e1ba2ffa7f6a39faa13857a72 (patch)
tree0dacee02b76748fe05db360a49c3fa8e82384f80
parent5ccfffee8a99081341b1b2404c2a97ae5e41d92d (diff)
Fix thread-safety: _POSIX_THREAD_SAFE_FUNCTIONS is in <unistd.h>
If you don't include it, it isn't defined... Change-Id: I1a800c709d3543699131ffff13c388ba652761fc Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
-rw-r--r--src/qml/jsruntime/qv4dateobject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4dateobject.cpp b/src/qml/jsruntime/qv4dateobject.cpp
index b3c340ccb2..0aa53c423e 100644
--- a/src/qml/jsruntime/qv4dateobject.cpp
+++ b/src/qml/jsruntime/qv4dateobject.cpp
@@ -57,6 +57,7 @@
# else
# include "qplatformdefs.h"
# endif
+# include <unistd.h> // for _POSIX_THREAD_SAFE_FUNCTIONS
#endif
using namespace QV4;