diff options
author | John Hughes <john@Calva.COM> | 2001-03-08 13:59:00 +0000 |
---|---|---|
committer | John Hughes <john@Calva.COM> | 2001-03-08 13:59:00 +0000 |
commit | 70623be853b5524d87d980ac3d611b11890800ea (patch) | |
tree | 7d3bcaaaa6831eec55b331b4b81f421e915c628d /io.c | |
parent | b8c9f77c6d2d9350d26705ff6b200e54d1ca66cc (diff) | |
download | strace-70623be853b5524d87d980ac3d611b11890800ea.tar.gz strace-70623be853b5524d87d980ac3d611b11890800ea.tar.bz2 strace-70623be853b5524d87d980ac3d611b11890800ea.tar.xz |
Use configure to detect 64bit off_t and rlim_t
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -35,6 +35,15 @@ #include <fcntl.h> #include <sys/uio.h> +#ifdef HAVE_LONG_LONG_OFF_T +/* + * Hacks for systems that have a long long off_t + */ + +#define sys_pread64 sys_pread +#define sys_pwrite64 sys_pwrite +#endif + int sys_read(tcp) struct tcb *tcp; @@ -269,7 +278,7 @@ struct tcb *tcp; #endif /* LINUX */ -#if _LFS64_LARGEFILE || FREEBSD +#if _LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T int sys_pread64(tcp) struct tcb *tcp; |