Fix include mistakes
authoralexanderk <alexanderk@opera.com>
Tue, 18 Nov 2014 13:46:57 +0000 (05:46 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 18 Nov 2014 13:47:10 +0000 (13:47 +0000)
1) Missing <stdio.h> while using fopen, fclose, fseek etc
2) platform-linux.cc includes <sys/types.h> wtice

BUG=v8:3691

Review URL: https://codereview.chromium.org/716123003

Cr-Commit-Position: refs/heads/master@{#25395}

src/base/platform/platform-linux.cc
src/base/platform/platform-posix.cc

index b13a1e85c540eadf54a23735482c67c8b3bd9c0a..36857e62194df5a1329bf853613dba0386c1817a 100644 (file)
@@ -8,10 +8,10 @@
 #include <pthread.h>
 #include <semaphore.h>
 #include <signal.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <sys/resource.h>
 #include <sys/time.h>
-#include <sys/types.h>
 
 // Ubuntu Dapper requires memory pages to be marked as
 // executable. Otherwise, OS raises an exception when executing code
index 0a222a612e7fd7959b364fd5f47ec8e8b2ac5461..0b16dfdcc6bae14c943f2253e40674c2edb667d0 100644 (file)
@@ -13,6 +13,7 @@
 #include <pthread_np.h>  // for pthread_set_name_np
 #endif
 #include <sched.h>  // for sched_yield
+#include <stdio.h>
 #include <time.h>
 #include <unistd.h>