$NetBSD: patch-aa,v 1.1.1.1 2012/02/21 12:49:43 drochner Exp $ --- modules/access/file.c.orig 2011-12-08 18:00:26.000000000 +0000 +++ modules/access/file.c @@ -52,6 +52,9 @@ #ifdef HAVE_LINUX_MAGIC_H # include # include +#elif defined (HAVE_FSTATVFS) +# include +# include #endif #if defined( WIN32 ) @@ -87,7 +90,7 @@ struct access_sys_t #if !defined (WIN32) && !defined (__OS2__) static bool IsRemote (int fd) { -#if defined (HAVE_FSTATVFS) && defined (MNT_LOCAL) +#if !defined(__linux__) && defined (HAVE_FSTATVFS) && defined (MNT_LOCAL) struct statvfs stf; if (fstatvfs (fd, &stf))