aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andree <mandree@freebsd.org>2011-08-28 05:04:07 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-08-28 05:05:02 +0200
commit1285437217a60194186b2c66a0422205b2dedd08 (patch)
tree919a3db42128b8780d6c9d59ea826c585ffb7e47
parenta04e4c2266241b1af8f50b0d78f13be866b405c4 (diff)
downloadbusybox-w32-1285437217a60194186b2c66a0422205b2dedd08.tar.gz
busybox-w32-1285437217a60194186b2c66a0422205b2dedd08.tar.bz2
busybox-w32-1285437217a60194186b2c66a0422205b2dedd08.zip
Fixes for FreeBSD build
Signed-off-by: Matthias Andree <mandree@freebsd.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--include/platform.h2
-rw-r--r--libbb/match_fstype.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index e22dbdb4a..826a4c497 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -417,6 +417,8 @@ typedef unsigned smalluint;
417# undef HAVE_STRVERSCMP 417# undef HAVE_STRVERSCMP
418# undef HAVE_XTABS 418# undef HAVE_XTABS
419# undef HAVE_DPRINTF 419# undef HAVE_DPRINTF
420# undef HAVE_UNLOCKED_STDIO
421# undef HAVE_UNLOCKED_LINE_OPS
420#endif 422#endif
421 423
422#if defined(__FreeBSD__) 424#if defined(__FreeBSD__)
diff --git a/libbb/match_fstype.c b/libbb/match_fstype.c
index 83d6e6770..c792d13b3 100644
--- a/libbb/match_fstype.c
+++ b/libbb/match_fstype.c
@@ -10,6 +10,8 @@
10 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 10 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
11 */ 11 */
12 12
13#ifdef HAVE_MNTENT_H
14
13#include "libbb.h" 15#include "libbb.h"
14 16
15int FAST_FUNC match_fstype(const struct mntent *mt, const char *t_fstype) 17int 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)
40 42
41 return !match; 43 return !match;
42} 44}
45
46#endif /* HAVE_MNTENT_H */