summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-12-21 11:07:18 -0800
committerColin Cross <ccross@android.com>2021-12-21 11:07:18 -0800
commit8f5313eadef68e36e38d35a96120121e953d2821 (patch)
tree9044506ff8aa24fd900cb11ff492a51038e80e36
parenta494651d13a48d569effc72b47e802926939e033 (diff)
downloadiorap-8f5313eadef68e36e38d35a96120121e953d2821.tar.gz
Support building libiorap-inode2filename against musl libc by including the missing sys/types.h header for dev_t. Bug: 190084016 Test: m USE_HOST_MUSL=true host-native Change-Id: I56815080eafe3765d15b107bcc2b5ee08cf0ad48
-rw-r--r--src/inode2filename/inode.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inode2filename/inode.cc b/src/inode2filename/inode.cc
index cc665ea..f0e956b 100644
--- a/src/inode2filename/inode.cc
+++ b/src/inode2filename/inode.cc
@@ -22,6 +22,7 @@
#include <vector>
#include <sys/sysmacros.h>
+#include <sys/types.h>
using android::base::ParseUint;
@@ -84,4 +85,4 @@ bool Inode::Parse(const std::string& str, Inode* out, std::string* error_msg) {
static_assert(std::is_same_v<iorap::inode2filename::dev_t, dev_t>);
static_assert(std::is_same_v<iorap::inode2filename::ino_t, ino_t>);
-// TODO: consider some tests for major, minor, etc. \ No newline at end of file
+// TODO: consider some tests for major, minor, etc.