[git commit] Fixes for FreeBSD build

Denys Vlasenko vda.linux at googlemail.com
Sun Aug 28 03:05:02 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=1285437217a60194186b2c66a0422205b2dedd08
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Matthias Andree <mandree at freebsd.org>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 include/platform.h   |    2 ++
 libbb/match_fstype.c |    4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/platform.h b/include/platform.h
index e22dbdb..826a4c4 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -417,6 +417,8 @@ typedef unsigned smalluint;
 # undef HAVE_STRVERSCMP
 # undef HAVE_XTABS
 # undef HAVE_DPRINTF
+# undef HAVE_UNLOCKED_STDIO
+# undef HAVE_UNLOCKED_LINE_OPS
 #endif
 
 #if defined(__FreeBSD__)
diff --git a/libbb/match_fstype.c b/libbb/match_fstype.c
index 83d6e67..c792d13 100644
--- a/libbb/match_fstype.c
+++ b/libbb/match_fstype.c
@@ -10,6 +10,8 @@
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
+#ifdef HAVE_MNTENT_H
+
 #include "libbb.h"
 
 int FAST_FUNC match_fstype(const struct mntent *mt, const char *t_fstype)
@@ -40,3 +42,5 @@ int FAST_FUNC match_fstype(const struct mntent *mt, const char *t_fstype)
 
 	return !match;
 }
+
+#endif /* HAVE_MNTENT_H */
-- 
1.7.3.4



More information about the busybox-cvs mailing list