LT{,.old}: include stddef.h for size_t
commitf0489b5c7945ff32a4856e4705ce90576b4dece0
authorVineet Gupta <vgupta@synopsys.com>
Sat, 9 Mar 2013 06:11:08 +0000 (9 11:41 +0530)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 13 Mar 2013 08:46:18 +0000 (13 09:46 +0100)
tree723446167809791e6ae84c687a094248f15a8d54
parentf4fe313d5084ec49e50f3b6379d44f63179ce835
LT{,.old}: include stddef.h for size_t

A user application built with -D_POSIX_C_SOURCE=200112L and
 #include signal.h, yields following compilation error:

------------------->8-----------------------------
arc-linux-uclibc-gcc -D_POSIX_C_SOURCE=200112L hello.c
In file included from
/opt/INSTALL/lib/gcc/arc-linux-uclibc/4.4.7/../../../../arc-linux-uclibc/sys-include/signal.h:429,
                 from hello.c:1:
/opt/INSTALL/lib/gcc/arc-linux-uclibc/4.4.7/../../../../arc-linux-uclibc/sys-include/bits/pthreadtypes.h:48:
error: expected specifier-qualifier-list before 'size_t'
------------------->8-----------------------------

The fix is to make sure size_t is explicitly provided to pthreadtype.h

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libpthread/linuxthreads.old/sysdeps/pthread/bits/pthreadtypes.h
libpthread/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h