diff -ru ntfs-3g_ntfsprogs-2016.2.22.orig/libfuse-lite/fusermount.c ntfs-3g_ntfsprogs-2016.2.22/libfuse-lite/fusermount.c
--- ntfs-3g_ntfsprogs-2016.2.22.orig/libfuse-lite/fusermount.c	2019-09-16 14:21:35.797457165 +0200
+++ ntfs-3g_ntfsprogs-2016.2.22/libfuse-lite/fusermount.c	2019-09-16 14:24:16.503004166 +0200
@@ -26,6 +26,7 @@
 #include <grp.h>
 #include <mntent.h>
 #include <sys/fsuid.h>
+#include <paths.h>
 #endif /* __SOLARIS__ */
 
 #include <sys/wait.h>
diff -ru ntfs-3g_ntfsprogs-2016.2.22.orig/libfuse-lite/mount_util.c ntfs-3g_ntfsprogs-2016.2.22/libfuse-lite/mount_util.c
--- ntfs-3g_ntfsprogs-2016.2.22.orig/libfuse-lite/mount_util.c	2019-09-16 14:21:35.797457165 +0200
+++ ntfs-3g_ntfsprogs-2016.2.22/libfuse-lite/mount_util.c	2019-09-16 14:24:16.535004474 +0200
@@ -22,6 +22,7 @@
 #include <mntent.h>
 #include <sys/mount.h>
 #include <sys/param.h>
+#include <paths.h>
 #endif /* __SOLARIS__ */
 
 #ifdef __SOLARIS__
diff -ru ntfs-3g_ntfsprogs-2016.2.22.orig/libntfs-3g/ioctl.c ntfs-3g_ntfsprogs-2016.2.22/libntfs-3g/ioctl.c
--- ntfs-3g_ntfsprogs-2016.2.22.orig/libntfs-3g/ioctl.c	2019-09-16 14:21:35.797457165 +0200
+++ ntfs-3g_ntfsprogs-2016.2.22/libntfs-3g/ioctl.c	2019-09-16 14:24:16.535004474 +0200
@@ -66,6 +66,10 @@
 #include <linux/fs.h>
 #endif
 
+#ifdef HAVE_SYS_SYSMACROS_H
+#include <sys/sysmacros.h>
+#endif
+
 #include "compat.h"
 #include "debug.h"
 #include "bitmap.h"
diff -ru ntfs-3g_ntfsprogs-2016.2.22.orig/src/lowntfs-3g.c ntfs-3g_ntfsprogs-2016.2.22/src/lowntfs-3g.c
--- ntfs-3g_ntfsprogs-2016.2.22.orig/src/lowntfs-3g.c	2019-09-16 14:21:35.789457088 +0200
+++ ntfs-3g_ntfsprogs-2016.2.22/src/lowntfs-3g.c	2019-09-16 14:25:11.623534789 +0200
@@ -76,6 +76,9 @@
 #ifdef HAVE_SYS_MKDEV_H
 #include <sys/mkdev.h>
 #endif
+#ifdef HAVE_SYS_SYSMACROS_H
+#include <sys/sysmacros.h>
+#endif
 
 #if defined(__APPLE__) || defined(__DARWIN__)
 #include <sys/dirent.h>
diff -ru ntfs-3g_ntfsprogs-2016.2.22.orig/src/ntfs-3g.c ntfs-3g_ntfsprogs-2016.2.22/src/ntfs-3g.c
--- ntfs-3g_ntfsprogs-2016.2.22.orig/src/ntfs-3g.c	2019-09-16 14:21:35.789457088 +0200
+++ ntfs-3g_ntfsprogs-2016.2.22/src/ntfs-3g.c	2019-09-16 14:25:14.583563284 +0200
@@ -75,6 +75,9 @@
 #ifdef HAVE_SYS_MKDEV_H
 #include <sys/mkdev.h>
 #endif
+#ifdef HAVE_SYS_SYSMACROS_H
+#include <sys/sysmacros.h>
+#endif
 
 #if defined(__APPLE__) || defined(__DARWIN__)
 #include <sys/dirent.h>
