summaryrefslogtreecommitdiffhomepage
path: root/test/util/test_util.cc
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-01-30 16:12:25 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-30 16:12:25 -0800
commitaf8f6f83a32f0128abd8bbf3eb6302078e447a7b (patch)
treec15332205a316f8aa71f1d07b5d5f66a620b025d /test/util/test_util.cc
parent9988cf2eeff596ce519046d80c54d09166f7d84b (diff)
parent82ae857877fdf3492f40bca87657a07892c3f59b (diff)
Merge pull request #1471 from xiaobo55x:syscall_test
PiperOrigin-RevId: 292445329
Diffstat (limited to 'test/util/test_util.cc')
-rw-r--r--test/util/test_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/util/test_util.cc b/test/util/test_util.cc
index 15cbc6da6..95e1e0c96 100644
--- a/test/util/test_util.cc
+++ b/test/util/test_util.cc
@@ -69,7 +69,6 @@ bool IsRunningWithHostinet() {
"xchg %%rdi, %%rbx\n" \
: "=a"(a), "=D"(b), "=c"(c), "=d"(d) \
: "a"(a_inp), "2"(c_inp))
-#endif // defined(__x86_64__)
CPUVendor GetCPUVendor() {
uint32_t eax, ebx, ecx, edx;
@@ -86,6 +85,7 @@ CPUVendor GetCPUVendor() {
}
return CPUVendor::kUnknownVendor;
}
+#endif // defined(__x86_64__)
bool operator==(const KernelVersion& first, const KernelVersion& second) {
return first.major == second.major && first.minor == second.minor &&