Fix thread-safety: _POSIX_THREAD_SAFE_FUNCTIONS is in <unistd.h>
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 17 Feb 2015 00:17:21 +0000 (16:17 -0800)
committerThiago Macieira <thiago.macieira@intel.com>
Thu, 5 Mar 2015 06:33:15 +0000 (06:33 +0000)
If you don't include it, it isn't defined...

Change-Id: I1a800c709d3543699131ffff13c388ba652761fc
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
src/qml/jsruntime/qv4dateobject.cpp

index b3c340ccb255c985a2f0fcddbd5528d944e6c5d1..0aa53c423e5e9cc70e06811c97392f054c53cb24 100644 (file)
@@ -57,6 +57,7 @@
 #  else
 #    include "qplatformdefs.h"
 #  endif
+#  include <unistd.h> // for _POSIX_THREAD_SAFE_FUNCTIONS
 #endif
 
 using namespace QV4;