--- io.c
+++ io.c
@@ -277,6 +277,7 @@
 #define PREAD_OFFSET_ARG 3
 #endif
 
+#if !HAVE_LONG_LONG_OFF_T
 int
 sys_pread(struct tcb *tcp)
 {
@@ -306,6 +307,7 @@
 	}
 	return 0;
 }
+#endif
 
 int
 sys_sendfile(struct tcb *tcp)
