aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2019-01-08 13:48:29 -0500
committerRob Landley <rob@landley.net>2019-01-08 18:38:04 -0600
commit3a3860a05a98964a4348fc112a2d9d90f9ce67d3 (patch)
tree9ad1eb87950e322e8938155b097e44814dc3a885
parent9aebc5f1a73e929897a1d6206b8923bf1ab949bb (diff)
downloadtoybox-3a3860a05a98964a4348fc112a2d9d90f9ce67d3.tar.gz
FreeBSD will use the getmntinfo API as with Apple
-rw-r--r--lib/portability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/portability.c b/lib/portability.c
index 5c754d7d..194d844b 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -57,7 +57,7 @@ int clearenv(void)
#endif
// Get a linked list of mount points, with stat information.
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
// Not implemented for macOS.
// See <sys/mount.h>'s getmntinfo(3) for the BSD API.