vold should #include <sys/sysmacros.h>
Bug: https://github.com/android-ndk/ndk/issues/398
Test: builds
Change-Id: I7a1ca1701099886fb493cc5288d6ee867d5f520a
diff --git a/Disk.cpp b/Disk.cpp
index 6562d96..cb9c9bb 100644
--- a/Disk.cpp
+++ b/Disk.cpp
@@ -35,6 +35,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <sys/mount.h>
using android::base::ReadFileToString;
diff --git a/EmulatedVolume.cpp b/EmulatedVolume.cpp
index 581c322..44ad22a 100644
--- a/EmulatedVolume.cpp
+++ b/EmulatedVolume.cpp
@@ -27,6 +27,7 @@
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/wait.h>
using android::base::StringPrintf;
diff --git a/PrivateVolume.cpp b/PrivateVolume.cpp
index e5809fb..e66e04d 100644
--- a/PrivateVolume.cpp
+++ b/PrivateVolume.cpp
@@ -33,6 +33,7 @@
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/wait.h>
#include <sys/param.h>
diff --git a/PublicVolume.cpp b/PublicVolume.cpp
index 893f928..119d92c 100644
--- a/PublicVolume.cpp
+++ b/PublicVolume.cpp
@@ -30,6 +30,7 @@
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/wait.h>
using android::base::StringPrintf;
diff --git a/Utils.cpp b/Utils.cpp
index ecc56e4..49b51d6 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -34,6 +34,7 @@
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <sys/wait.h>
#include <sys/statvfs.h>
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index 927c660..2c39240 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -26,6 +26,7 @@
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/wait.h>
#include <unistd.h>