Commit af3e1610 authored by Jason A. Donenfeld's avatar Jason A. Donenfeld Committed by Richard Weinberger
Browse files

um: include sys/types.h for size_t



Usually size_t comes from sys/types.h, not stddef.h. This code likely
worked only because something else in its usage chain was pulling in
sys/types.h. stddef.h is still required for NULL, however, so note this.

Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 8970d5c9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,11 +16,12 @@
 */
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))

/* This is to get size_t */
/* This is to get size_t and NULL */
#ifndef __UM_HOST__
#include <linux/types.h>
#else
#include <stddef.h>
#include <sys/types.h>
#endif

extern void panic(const char *fmt, ...)