v8: Fix the compilation of the standalone test on GNU/Linux systems
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Wed, 9 May 2012 08:35:37 +0000 (10:35 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 9 May 2012 13:30:34 +0000 (15:30 +0200)
Without including string.h, memcmp will not be known and will lead
to the following error:
v8main.cpp:59:5: error: ‘::strcmp’ has not been declared
v8main.cpp:60:5: error: ‘::strcmp’ has not been declared
...

Change-Id: I82382ca930f654c090a78a39f54abc8fb0a88f63
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
tests/auto/v8/v8main.cpp

index 2b48f3b..9af1de4 100644 (file)
@@ -41,6 +41,7 @@
 
 #include "v8test.h"
 #include <stdio.h>
+#include <string.h>
 #include <strings.h>
 
 #define RUN_TEST(testname) { \