diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-01-25 11:05:21 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-01-25 11:06:30 +0100 |
| commit | b5f1cae8dd3f19faff3ff122020f98aa6f28916c (patch) | |
| tree | 84838c1104d9ec573c158afeac9fe5dcc82aec92 /executor | |
| parent | 71c8a60fee3cd389849444d84fe95fa0d90f0d57 (diff) | |
sysgen: use __ppc64__ || __PPC64__ || __powerpc64__ to detect ppc
Different macros are defined by different compilers...
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/syscalls.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/syscalls.h b/executor/syscalls.h index 28817ea5a..dd9479c93 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -12,7 +12,7 @@ struct call_t { }; -#ifdef __x86_64__ +#if defined(__x86_64__) || 0 call_t syscalls[] = { {"open", 2}, {"open$dir", 2}, @@ -978,7 +978,7 @@ call_t syscalls[] = { }; #endif -#ifdef __aarch64__ +#if defined(__aarch64__) || 0 call_t syscalls[] = { {"open", -1}, {"open$dir", -1}, @@ -1944,7 +1944,7 @@ call_t syscalls[] = { }; #endif -#ifdef __ppc64__ +#if defined(__ppc64__) || defined(__PPC64__) || defined(__powerpc64__) || 0 call_t syscalls[] = { {"open", 5}, {"open$dir", 5}, |
