exec_prefix = @exec_prefix@
libdir = $(exec_prefix)/lib
+
SOURCES = getdate.y posixtm.y \
argmatch.c backupfile.c basename.c dirname.c eaccess.c \
error.c filemode.c fsusage.c full-write.c getopt.c getopt1.c \
#endif
#endif
-#ifdef HAVE_SYS_STATVFS_H /* SVR4. */
+#ifdef STAT_STATVFS /* SVR4. */
struct statvfs fsd;
if (statvfs (path, &fsd) < 0)
char *xstrdup ();
void error ();
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
#if defined (MOUNTED_GETFSSTAT) /* __alpha running OSF_1 */
# include <sys/mount.h>
# include <sys/fs_types.h>
#endif
#ifdef MOUNTED_GETMNT /* Ultrix. */
-#include <sys/param.h>
#include <sys/mount.h>
#include <sys/fs_types.h>
#endif
}
#endif /* MOUNTED_GETMNTENT1. */
-#ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */
+#if defined (MOUNTED_GETMNTINFO) && !defined (__NetBSD__)
static char *
fstype_to_string (t)
short t;
me = (struct mount_entry *) xmalloc (sizeof (struct mount_entry));
me->me_devname = xstrdup (fsp->f_mntfromname);
me->me_mountdir = xstrdup (fsp->f_mntonname);
+#ifdef __NetBSD__
+ me->me_type = fsp->f_fstypename;
+#else
me->me_type = fstype_to_string (fsp->f_type);
+#endif
me->me_dev = -1; /* Magic; means not known yet. */
me->me_next = NULL;