summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorJohn Hughes <john@Calva.COM>2001-03-08 13:59:00 +0000
committerJohn Hughes <john@Calva.COM>2001-03-08 13:59:00 +0000
commit70623be853b5524d87d980ac3d611b11890800ea (patch)
tree7d3bcaaaa6831eec55b331b4b81f421e915c628d /io.c
parentb8c9f77c6d2d9350d26705ff6b200e54d1ca66cc (diff)
downloadstrace-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.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/io.c b/io.c
index 6bb986c..4bb0002 100644
--- a/io.c
+++ b/io.c
@@ -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;