Fixes for FreeBSD build
authorMatthias Andree <mandree@freebsd.org>
Sun, 28 Aug 2011 03:04:07 +0000 (05:04 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 28 Aug 2011 03:05:02 +0000 (05:05 +0200)
Signed-off-by: Matthias Andree <mandree@freebsd.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/platform.h
libbb/match_fstype.c

index e22dbdb4a159ffd330442e1489da8149743f3be0..826a4c497ba271000b7fd7d9c1dd7c9658bbb3c7 100644 (file)
@@ -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__)
index 83d6e67700b0417154fdb215b739d64e9dda319f..c792d13b387220637ba84b5d490230b2f398409b 100644 (file)
@@ -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 */