Thread (3 messages) 3 messages, 2 authors, 2019-11-09

Re: Missing size_t declaration in UAPI

From: Elichai Turkel <hidden>
Date: 2019-11-09 11:52:11

Possibly related (same subject, not in this thread)

Hi,
I'm proposing to move `linux/tools/include/nolibc/nolibc.h` to the
UAPI interface.
It would then be included in `linux/types.h`
Would love feedback before I work on a patch.

Thanks.
Elichai.

On Fri, Nov 8, 2019 at 11:43 PM Christian Brauner [off-list ref] wrote:
On November 8, 2019 10:25:09 PM GMT+01:00, Elichai Turkel [off-list ref] wrote:
quoted
Hi,
Currently compiling the following program fails:
#include "linux/signal.h"
void main(void){}
Because of `./asm/signal.h:127:2: error: unknown type name ‘size_t’`.

I tried patching with `#include <stddef.h>` but there's a local file
with the same name overriding the include.

How can this be fixed? the `drm` headers seems to work with `uint_*`.

Right now the `linux/signal.h` header isn't usable without wrapping it
with another header to include/define size_t.

Thanks,
Elichai.

I think it might make sense to always cc the libc mailing list too for these things.


-- 
PGP: 5607C93B5F86650C
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help