ports/sysutils/toybox/files/patch-lib_portability.h
Fernando Apesteguía e2facd354b sysutils/toybox: update to 0.8.5
ChangeLog: http://landley.net/toybox/#19-15-2021

PR:	256351
Reported by:	vidar@karlsen.tech (maintainer)
2021-06-03 07:41:29 +02:00

11 lines
446 B
C

--- lib/portability.h.orig 2021-06-01 14:59:57 UTC
+++ lib/portability.h
@@ -217,7 +217,7 @@ int posix_fallocate(int, off_t, off_t);
#include <xlocale.h>
#endif
-#if defined(__APPLE__) || defined(__OpenBSD__)
+#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
static inline long statfs_bsize(struct statfs *sf) { return sf->f_iosize; }
static inline long statfs_frsize(struct statfs *sf) { return sf->f_bsize; }
#else