commit | ce7b56980309369aa1f3dcd6a5d3c0107b76412e | [log] [tgz] |
---|---|---|
author | Elliott Hughes <[email protected]> | Thu May 18 16:44:49 2017 -0700 |
committer | Treehugger Robot <[email protected]> | Fri May 19 17:44:25 2017 +0000 |
tree | d3b90129ac7fe75c6fb21f51532c4bdf02fa19d7 | |
parent | 038cdbfa3023c72cc9fe004d5a44e575b5689bc0 [diff] [blame] |
Include <sys/sysmacros.h> for major/minor/makedev. glibc and bionic are both moving away from having <sys/types.h> pull in <sys/sysmacros.h>. Bug: https://github.com/android-ndk/ndk/issues/398 Test: builds Change-Id: I5c4ae7f9320e671bc154a59cde42dad4dab12f29
diff --git a/common/test_utils.cc b/common/test_utils.cc index dfdc6b8..fb22c80 100644 --- a/common/test_utils.cc +++ b/common/test_utils.cc
@@ -25,6 +25,7 @@ #include <stdlib.h> #include <sys/ioctl.h> #include <sys/stat.h> +#include <sys/sysmacros.h> #include <sys/types.h> #include <sys/xattr.h> #include <unistd.h>