24 lines
668 B
Plaintext
24 lines
668 B
Plaintext
$NetBSD: patch-aa,v 1.1 2014/12/13 11:15:45 wiz Exp $
|
|
|
|
--- modules/access/file.c.orig 2013-09-12 15:18:33.000000000 +0000
|
|
+++ modules/access/file.c
|
|
@@ -42,6 +42,9 @@
|
|
#ifdef HAVE_LINUX_MAGIC_H
|
|
# include <sys/vfs.h>
|
|
# include <linux/magic.h>
|
|
+#elif defined (HAVE_FSTATVFS)
|
|
+# include <sys/statvfs.h>
|
|
+# include <sys/mount.h>
|
|
#endif
|
|
|
|
#if defined( _WIN32 )
|
|
@@ -75,7 +78,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))
|