From 8f5313eadef68e36e38d35a96120121e953d2821 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 21 Dec 2021 11:07:18 -0800 Subject: Support building libiorap-inode2filename against musl 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 --- src/inode2filename/inode.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include +#include 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); static_assert(std::is_same_v); -// TODO: consider some tests for major, minor, etc. \ No newline at end of file +// TODO: consider some tests for major, minor, etc. -- cgit v1.2.3