ports/sysutils/dd_rescue/files/patch-pread64.h
MANTANI Nobutaka 7e351a1d7b sysutils/dd_rescue: Update to 1.99.14
Replace "_" in the names of the patch files with "__" to conform to the
patch file name convention.
2024-08-25 21:30:33 +09:00

11 lines
396 B
C

--- pread64.h.orig 2024-08-25 11:50:36 UTC
+++ pread64.h
@@ -18,7 +18,7 @@
# include <sys/reg.h>
#endif
-#if !defined(HAVE_PREAD64) && __WORDSIZE == 64 && !defined(TEST_SYSCALL) && defined(HAVE_PREAD)
+#if defined(__FreeBSD__) || !defined(HAVE_PREAD64) && __WORDSIZE == 64 && !defined(TEST_SYSCALL) && defined(HAVE_PREAD)
#define pread64 pread
#define pwrite64 pwrite
#define HAVE_PREAD64