summaryrefslogtreecommitdiffstats
path: root/sandbox/linux
diff options
context:
space:
mode:
authorshenhan@google.com <shenhan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-26 04:57:37 +0000
committershenhan@google.com <shenhan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-26 04:57:37 +0000
commite9478a9964f53967686f252942fb3eb881f273fa (patch)
tree1cb2eb1cfe2e36552b200198c6e24fa7d7df05ca /sandbox/linux
parentc6e5ca6d02b9cd691b1d53e9dd7bdf95c6ba71b9 (diff)
downloadchromium_src-e9478a9964f53967686f252942fb3eb881f273fa.zip
chromium_src-e9478a9964f53967686f252942fb3eb881f273fa.tar.gz
chromium_src-e9478a9964f53967686f252942fb3eb881f273fa.tar.bz2
Fix gcc 4.7 building problems - cont 2.
(The gcc 4.7 building problems keep popping up as I sync the repo, so there are several "fix gcc 4.7 .." cls.) Fixes include - - added static_cast for narrowing conversion in simple(short) initiliazation lists - added explicit <unistd.h> inclusion BUG=None TEST=Built successfully using GCC-4.7 under linux and under chromeos chroot. Review URL: https://chromiumcodereview.appspot.com/10833017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148519 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/linux')
-rw-r--r--sandbox/linux/services/libc_urandom_override.cc1
-rw-r--r--sandbox/linux/suid/client/setuid_sandbox_client.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/sandbox/linux/services/libc_urandom_override.cc b/sandbox/linux/services/libc_urandom_override.cc
index 14ece95..ee34045 100644
--- a/sandbox/linux/services/libc_urandom_override.cc
+++ b/sandbox/linux/services/libc_urandom_override.cc
@@ -8,6 +8,7 @@
#include <pthread.h>
#include <stdio.h>
#include <sys/stat.h>
+#include <unistd.h>
#include "base/eintr_wrapper.h"
#include "base/logging.h"
diff --git a/sandbox/linux/suid/client/setuid_sandbox_client.cc b/sandbox/linux/suid/client/setuid_sandbox_client.cc
index 07bff73..749d2d0 100644
--- a/sandbox/linux/suid/client/setuid_sandbox_client.cc
+++ b/sandbox/linux/suid/client/setuid_sandbox_client.cc
@@ -4,6 +4,7 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include <unistd.h>
#include "base/eintr_wrapper.h"
#include "base/environment.h"