summaryrefslogtreecommitdiffstats
path: root/net/base/file_stream_posix.cc
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2010-10-01 13:32:51 -0400
committerPatrick Scott <phanna@android.com>2010-10-01 14:11:09 -0400
commit49139a52abc21019da7fcbafdef393ad960ea0e2 (patch)
tree9c16dadf1f8b024c1613cf10fb4e8b6d8826e7b7 /net/base/file_stream_posix.cc
parente484de727544f835b8e652145af3519d10176234 (diff)
downloadexternal_chromium-49139a52abc21019da7fcbafdef393ad960ea0e2.zip
external_chromium-49139a52abc21019da7fcbafdef393ad960ea0e2.tar.gz
external_chromium-49139a52abc21019da7fcbafdef393ad960ea0e2.tar.bz2
Build fixes for the simulator.
Change-Id: I4c01c5383d311c7f06e91b1ded529ef6db156b3f
Diffstat (limited to 'net/base/file_stream_posix.cc')
-rw-r--r--net/base/file_stream_posix.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/base/file_stream_posix.cc b/net/base/file_stream_posix.cc
index 6b2656a..b83729a 100644
--- a/net/base/file_stream_posix.cc
+++ b/net/base/file_stream_posix.cc
@@ -26,9 +26,11 @@
#include "net/base/net_errors.h"
// We cast back and forth, so make sure it's the size we're expecting.
-//COMPILE_ASSERT(sizeof(int64) == sizeof(off_t), off_t_64_bit);
+#ifdef __BIONIC__
COMPILE_ASSERT(sizeof(int32) == sizeof(off_t), off_t_32_bit);
-// I don't tink this will be a problem for now
+#else
+COMPILE_ASSERT(sizeof(int64) == sizeof(off_t), off_t_64_bit);
+#endif
// Make sure our Whence mappings match the system headers.
COMPILE_ASSERT(net::FROM_BEGIN == SEEK_SET &&