Skip to content

Commit

Permalink
um: Include sys/types.h for makedev(), major(), minor()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans-Werner Hilse authored and Richard Weinberger committed Jun 25, 2015
1 parent f9bb3b5 commit 8eeba4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/um/os-Linux/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/types.h>
#include <os.h>

static void copy_stat(struct uml_stat *dst, const struct stat64 *src)
Expand Down

0 comments on commit 8eeba4e

Please sign in to comment.