提交 8eeba4e9 编写于 作者: H Hans-Werner Hilse 提交者: Richard Weinberger

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: NHans-Werner Hilse <hwhilse@gmail.com>
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 f9bb3b59
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/un.h> #include <sys/un.h>
#include <sys/types.h>
#include <os.h> #include <os.h>
static void copy_stat(struct uml_stat *dst, const struct stat64 *src) static void copy_stat(struct uml_stat *dst, const struct stat64 *src)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册