$NetBSD$

--- include/sm/conf.h.orig	2020-06-04 08:27:49.000000000 +0200
+++ include/sm/conf.h	2021-03-18 10:50:12.561806381 +0100
@@ -380,9 +380,9 @@
 			/* Solaris 2.x (a.k.a. SunOS 5.x) */
 #   ifndef __svr4__
 #    define __svr4__		/* use all System V Release 4 defines below */
 #   endif
-#   if SOLARIS >= 21100
+#   if SOLARIS >= 21100 && defined(SOLARIS_HAS_PATHS_H)
 #    include <paths.h>
 #   endif
 #   ifndef _PATH_VARRUN
 #    define _PATH_VARRUN	"/var/run/"
@@ -598,9 +598,13 @@
 #  else /* vax */
 #   define LA_TYPE	LA_INT
 #   define LA_AVENRUN	"avenrun"
 #  endif /* vax */
-#  define SFS_TYPE	SFS_MOUNT	/* use <sys/mount.h> statfs() impl */
+#  if defined(__NetBSD__) && (__NetBSD_Version__ > 299000900)
+#   define SFS_TYPE	SFS_STATVFS	/* use <sys/statvfs.h> statfs() impl */
+#  else
+#   define SFS_TYPE	SFS_MOUNT	/* use <sys/mount.h> statfs() impl */
+#  endif
 #  ifndef IDENTPROTO
 #   define IDENTPROTO	0	/* pre-4.4 TCP/IP implementation is broken */
 #  endif
 #  define SYSLOG_BUFSIZE	256
