libbb: move nuke_str() from passwd into libbb
[oweals/busybox.git] / libbb / match_fstype.c
index 9360e757a655a70dd19d175e226b4781932706db..32c3d7f188a1c941ef56fdf76becb761c9026f59 100644 (file)
@@ -7,11 +7,13 @@
  *
  * Returns 1 for a match, otherwise 0
  *
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
 #include "libbb.h"
 
+#ifdef HAVE_MNTENT_H
+
 int FAST_FUNC match_fstype(const struct mntent *mt, const char *t_fstype)
 {
        int match = 1;
@@ -40,3 +42,5 @@ int FAST_FUNC match_fstype(const struct mntent *mt, const char *t_fstype)
 
        return !match;
 }
+
+#endif /* HAVE_MNTENT_H */