diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2018-04-26 18:54:00 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2018-04-26 18:54:00 +0000 |
| commit | 9a16bd169e8c40dcdaf5b38eecdd925706e57d4b (patch) | |
| tree | 95828665d86db810645f91505e75d34928880332 /lib/libsysdecode/errno.c | |
| parent | 5f2336efb42557443df0a565ce1959b1a046aca8 (diff) | |
Notes
Diffstat (limited to 'lib/libsysdecode/errno.c')
| -rw-r--r-- | lib/libsysdecode/errno.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libsysdecode/errno.c b/lib/libsysdecode/errno.c index ef463df4ae67..0b6ae6083fb2 100644 --- a/lib/libsysdecode/errno.c +++ b/lib/libsysdecode/errno.c @@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> #include <sysdecode.h> -#if defined(__i386__) || defined(__amd64__) +#if defined(__aarch64__) || defined(__amd64__) || defined(__i386__) static #include <compat/linux/linux_errno.inc> #endif @@ -130,7 +130,7 @@ sysdecode_abi_to_freebsd_errno(enum sysdecode_abi abi, int error) case SYSDECODE_ABI_FREEBSD: case SYSDECODE_ABI_FREEBSD32: return (error); -#if defined(__i386__) || defined(__amd64__) +#if defined(__aarch64__) || defined(__amd64__) || defined(__i386__) case SYSDECODE_ABI_LINUX: case SYSDECODE_ABI_LINUX32: { unsigned int i; @@ -166,7 +166,7 @@ sysdecode_freebsd_to_abi_errno(enum sysdecode_abi abi, int error) case SYSDECODE_ABI_FREEBSD: case SYSDECODE_ABI_FREEBSD32: return (error); -#if defined(__i386__) || defined(__amd64__) +#if defined(__aarch64__) || defined(__amd64__) || defined(__i386__) case SYSDECODE_ABI_LINUX: case SYSDECODE_ABI_LINUX32: if (error >= 0 && error <= ELAST) |
