From f0489b5c7945ff32a4856e4705ce90576b4dece0 Mon Sep 17 00:00:00 2001 From: Vineet Gupta Date: Sat, 9 Mar 2013 11:41:08 +0530 Subject: 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 Signed-off-by: Bernhard Reutner-Fischer --- libpthread/linuxthreads.old/sysdeps/pthread/bits/pthreadtypes.h | 3 +++ libpthread/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'libpthread') diff --git a/libpthread/linuxthreads.old/sysdeps/pthread/bits/pthreadtypes.h b/libpthread/linuxthreads.old/sysdeps/pthread/bits/pthreadtypes.h index faec63b06..3eb592919 100644 --- a/libpthread/linuxthreads.old/sysdeps/pthread/bits/pthreadtypes.h +++ b/libpthread/linuxthreads.old/sysdeps/pthread/bits/pthreadtypes.h @@ -19,6 +19,9 @@ #ifndef _BITS_PTHREADTYPES_H #define _BITS_PTHREADTYPES_H 1 +#define __need_size_t +#include + #define __need_schedparam #include diff --git a/libpthread/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h b/libpthread/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h index 4ea6d8ac5..8d01c8908 100644 --- a/libpthread/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h +++ b/libpthread/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h @@ -19,6 +19,9 @@ #ifndef _BITS_PTHREADTYPES_H #define _BITS_PTHREADTYPES_H 1 +#define __need_size_t +#include + #define __need_schedparam #include -- cgit v1.2.3