[MIPS] Add ABI check for syscall numbers definitions

In file mips_linux_syscalls.h are definitions of syscall
numbers for O32 ABI, so this check is needed in order for
Mips architectures with other ABIs to work properly.

BUG=400684
TEST=compile sandbox_linux_unittest for MIPS32 and MIPS64

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

Cr-Commit-Position: refs/heads/master@{#288252}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288252 0039d316-1c4b-4281-b951-d872f2087c98
parent 026ace0d
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "sandbox/linux/services/arm_linux_syscalls.h" #include "sandbox/linux/services/arm_linux_syscalls.h"
#endif #endif
#if defined(__mips__) #if defined(__mips__) && defined(_ABIO32)
#include "sandbox/linux/services/mips_linux_syscalls.h" #include "sandbox/linux/services/mips_linux_syscalls.h"
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment