summaryrefslogtreecommitdiffstats
path: root/tools/android
diff options
context:
space:
mode:
authorSungmann.Cho@gmail.com <Sungmann.Cho@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-30 09:14:31 +0000
committerSungmann.Cho@gmail.com <Sungmann.Cho@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-30 09:14:31 +0000
commit0e5c81fa046e2f9cb63204260068a73555e660b6 (patch)
tree82a1b9ee854dde6120f9c3f425dab87c3567ca72 /tools/android
parentc22171a7adc64dec0f8c590ba6b911ab344baca7 (diff)
downloadchromium_src-0e5c81fa046e2f9cb63204260068a73555e660b6.zip
chromium_src-0e5c81fa046e2f9cb63204260068a73555e660b6.tar.gz
chromium_src-0e5c81fa046e2f9cb63204260068a73555e660b6.tar.bz2
Fix android build error with gcc 4.7.2.
Compiling the latest source tree with gcc 4.7.2 currently breaks at: ../../tools/android/forwarder2/socket.cc: In member function ‘int forwarder2::Socket::Read(void*, size_t)’: ../../tools/android/forwarder2/socket.cc:323:13: error: ‘read’ was not declared in this scope ../../tools/android/forwarder2/socket.cc:323:13: error: invalid type in declaration before ‘;’ token [2269/11351] CXX obj/chrome/app/policy/gen...ettings_proto_compile.chrome_settings.pb.o ninja: build stopped: subcommand failed. It seems that 'tools/android/forwarder2/socket.cc' needs '#include <unistd.h>. Review URL: https://chromiumcodereview.appspot.com/11896088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/android')
-rw-r--r--tools/android/forwarder2/socket.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/android/forwarder2/socket.cc b/tools/android/forwarder2/socket.cc
index 4c3317b..acaebf1 100644
--- a/tools/android/forwarder2/socket.cc
+++ b/tools/android/forwarder2/socket.cc
@@ -12,6 +12,7 @@
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
+#include <unistd.h>
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"