])
if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
AC_CHECK_HEADERS(machine/param.h sys/shm.h)
-AC_CHECK_HEADERS([linux/version.h linux/dccp.h scsi/scsi.h])
+AC_CHECK_HEADERS([linux/version.h linux/dccp.h scsi/scsi.h linux/magic.h])
AC_CHECK_HEADERS(syslog.h)
fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
#endif
#if defined (__linux__)
# include <sys/vfs.h>
+#ifdef HAVE_LINUX_MAGIC_H
# include <linux/magic.h>
+#endif
#elif defined (HAVE_SYS_MOUNT_H)
# include <sys/param.h>
# include <sys/mount.h>
#if defined(MNT_LOCAL)
return !(stf.f_flags & MNT_LOCAL);
-#elif defined (__linux__)
+#else
+# ifdef HAVE_LINUX_MAGIC_H
switch (stf.f_type)
{
case AFS_SUPER_MAGIC:
return true;
}
return false;
-
+# endif
#endif
#else /* !HAVE_FSTATFS */
(void)fd;