adb should #include <sys/sysmacros.h>
On modern systems <sys/sysmacros.h> no longer being included by <sys/types.h> To use major(), minor() we should include <sys/sysmacros.h> explicitly. See https://koji.fedoraproject.org/koji/taskinfo?taskID=29356781 Similar changes merged last year: https://android-review.googlesource.com/c/platform/system/core/+/398913 https://android-review.googlesource.com/c/platform/system/core/+/399050
This commit is contained in:
parent
7b02605bf2
commit
0a10040289
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue