diff options
Diffstat (limited to 'arch/um/include/user.h')
-rw-r--r-- | arch/um/include/user.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/um/include/user.h b/arch/um/include/user.h index d380e6d91a90..99033ff28a78 100644 --- a/arch/um/include/user.h +++ b/arch/um/include/user.h @@ -14,10 +14,12 @@ */ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -/* - * This will provide the size_t definition in both kernel and userspace builds - */ +/* This is to get size_t */ +#ifdef __KERNEL__ #include <linux/types.h> +#else +#include <stddef.h> +#endif extern void panic(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); |