From 27781b6335b9c139dc6cacf5e206289c0fec7c54 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Sun, 5 May 2019 18:10:25 +0400 Subject: Fix build of POSIX runtime on FreeBSD i386. --- runtime/POSIX/FreeBSD.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/POSIX') diff --git a/runtime/POSIX/FreeBSD.h b/runtime/POSIX/FreeBSD.h index fb3f99bd..ec7ce1ef 100644 --- a/runtime/POSIX/FreeBSD.h +++ b/runtime/POSIX/FreeBSD.h @@ -141,12 +141,15 @@ struct rlimit64; #else #define __NR_stat SYS_freebsd11_stat #endif +#define __NR_stat64 __NR_stat #define __NR_fstat SYS_fstat +#define __NR_fstat64 __NR_fstat #ifdef SYS_lstat #define __NR_lstat SYS_lstat #else #define __NR_lstat SYS_freebsd11_lstat #endif +#define __NR_lstat64 __NR_lstat #define __NR_pathconf SYS_pathconf #define __NR_fpathconf SYS_fpathconf #define __NR_getrlimit SYS_getrlimit @@ -361,6 +364,7 @@ struct rlimit64; #define __NR_lseek SYS_lseek #define __NR_truncate SYS_truncate #define __NR_ftruncate SYS_ftruncate +#define __NR_ftruncate64 __NR_ftruncate #define __NR_thr_kill2 SYS_thr_kill2 #define __NR_shm_open SYS_shm_open #define __NR_shm_unlink SYS_shm_unlink -- cgit 1.4.1