[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170224143533.GA6820@avx2>
Date: Fri, 24 Feb 2017 17:35:33 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: akpm@...ux-foundation.org
Cc: ldv@...linux.org, ebiederm@...ssion.com,
linux-kernel@...r.kernel.org
Subject: Re: + uapi-fix-linux-sysctlh-userspace-compilation-errors.patch
added to -mm tree
On Thu, Feb 23, 2017 at 02:44:31PM -0800, akpm@...ux-foundation.org wrote:
> /usr/include/linux/sysctl.h:38:2: error: unknown type name 'size_t'
> size_t *oldlenp;
> /usr/include/linux/sysctl.h:40:2: error: unknown type name 'size_t'
> size_t newlen;
> --- a/include/uapi/linux/sysctl.h~uapi-fix-linux-sysctlh-userspace-compilation-errors
> +++ a/include/uapi/linux/sysctl.h
> @@ -26,6 +26,10 @@
> #include <linux/types.h>
> #include <linux/compiler.h>
>
> +#ifndef __KERNEL__
> +#include <stddef.h> /* For size_t. */
> +#endif
There is __kernel_size_t for cases like this.
Powered by blists - more mailing lists