Include cstdio before using sscanf and stderr
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Apr 2017 19:03:59 +0000 (19:03 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Apr 2017 19:03:59 +0000 (19:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=170098

Patch by Ting-Wei Lan <lantw44@gmail.com> on 2017-04-07
Reviewed by Michael Catanzaro.

* wtf/NumberOfCores.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215107 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/NumberOfCores.cpp

index 3dc9e8f..e894b56 100644 (file)
@@ -1,3 +1,12 @@
+2017-04-07  Ting-Wei Lan  <lantw44@gmail.com>
+
+        Include cstdio before using sscanf and stderr
+        https://bugs.webkit.org/show_bug.cgi?id=170098
+
+        Reviewed by Michael Catanzaro.
+
+        * wtf/NumberOfCores.cpp:
+
 2017-04-07  Saam Barati  <sbarati@apple.com>
 
         WebAssembly: Make to a compilation API that allows for multi-VM concurrent compilations of Wasm Modules
index e657bb0..ea5f825 100644 (file)
@@ -26,6 +26,8 @@
 #include "config.h"
 #include "NumberOfCores.h"
 
+#include <cstdio>
+
 #if OS(DARWIN)
 #include <sys/param.h>
 // sys/types.h must come before sys/sysctl.h because the latter uses