*/
#if defined(HAVE_DARWIN_OS) \
|| defined(HAVE_FREEBSD_OS ) \
+ || defined(HAVE_KFREEBSD_OS ) \
|| defined(HAVE_OPENBSD_OS)
#include <sys/param.h>
/* Read mtab entries */
bool read_mtab(mtab_handler_t *mtab_handler, void *user_ctx)
-{
+{
+/* Debian stretch GNU/KFreeBSD has both getmntinfo and getmntent, but
+ only the first seems to work, so we skip over getmntent in this case */
+#ifndef HAVE_KFREEBSD_OS
#ifdef HAVE_GETMNTENT
FILE *mntfp;
struct stat st;
#endif
#endif /* HAVE_GETMNTENT */
+#endif /* HAVE_KFREEBSD_OS */
#ifdef HAVE_GETMNTINFO
struct stat st;