Files
ports/sysutils/mpifileutils/files/patch-mpifileutils_src_common_mfu__io.c
2026-10-04 04:07:15 +00:00

16 lines
409 B
C

--- mpifileutils/src/common/mfu_io.c.orig 2025-02-19 22:20:52 UTC
+++ mpifileutils/src/common/mfu_io.c
@@ -21,6 +21,12 @@
#include "mfu.h"
#include "mfu_errors.h"
+/* FreeBSD does not provide lstat64, only lstat. Map it accordingly. */
+#ifdef __FreeBSD__
+#undef lstat64
+#define lstat64(path, buf) lstat((path), (struct stat *)(buf))
+#endif
+
#define MFU_IO_TRIES (5)
#define MFU_IO_USLEEP (100)