diff options
author | Hans-Werner Hilse <hwhilse@gmail.com> | 2015-06-11 05:29:20 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-06-25 16:42:21 -0400 |
commit | 8eeba4e9a76cd126e737d3d303d9c424b66ea90d (patch) | |
tree | cc569d602324a84beb30e9989fc6489d84b07511 /arch | |
parent | f9bb3b5947c507d402eecbffabb8fb0864263ad1 (diff) |
um: Include sys/types.h for makedev(), major(), minor()
The functions in question are not part of the POSIX standard,
documentation however hints that the corresponding header shall
be sys/types.h. C libraries other than glibc, namely musl, did
not include that header via other ways and complained.
Signed-off-by: Hans-Werner Hilse <hwhilse@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/os-Linux/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c index 08d90fba952c..26e0164895e4 100644 --- a/arch/um/os-Linux/file.c +++ b/arch/um/os-Linux/file.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <sys/socket.h> | 13 | #include <sys/socket.h> |
14 | #include <sys/stat.h> | 14 | #include <sys/stat.h> |
15 | #include <sys/un.h> | 15 | #include <sys/un.h> |
16 | #include <sys/types.h> | ||
16 | #include <os.h> | 17 | #include <os.h> |
17 | 18 | ||
18 | static void copy_stat(struct uml_stat *dst, const struct stat64 *src) | 19 | static void copy_stat(struct uml_stat *dst, const struct stat64 *src) |