libc/newlib/libc/include
Sebastian Huber 3ad9b2fcba Provide __size_t via <sys/_types.h>
Various FreeBSD source and header files need a typedef __size_t via
<sys/_types.h>.  Unfortunately the GCC provided <stddef.h> uses

	#if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) \
	  || defined(__DragonFly__) \
	  || defined(__FreeBSD_kernel__)
	/* __size_t is a typedef on FreeBSD 5, must not trash it. */
	#elif defined (__VMS__)
	/* __size_t is also a typedef on VMS.  */
	#else
	#define __size_t
	#endif

and therefore defines __size_t on Newlib targets which would trash a
__size_t typedef.  Include <stddef.h> before <sys/_types.h> in
<sys/types.h> and undefine __size_t in <sys/_types.h> as a workaround.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-04-15 14:51:40 +02:00
..
machine Eliminate use of Newlib-specific <machine/types.h> 2016-04-13 13:30:27 +02:00
rpc * libc/include/locale.h (NULL): Fetch definition via stddef.h. 2012-11-01 11:51:12 +00:00
sys Provide __size_t via <sys/_types.h> 2016-04-15 14:51:40 +02:00
_ansi.h * libc/include/_ansi.h: _LONG_LONG_TYPE definition removed. 2014-10-10 14:43:19 +00:00
_newlib_version.h Fix _newlib_version.h logic to support building gcc with newlib. 2016-02-25 15:04:19 -05:00
_syslist.h
alloca.h
ar.h
argz.h
assert.h * libc/include/assert.h (static_assert): Define. 2012-10-16 19:00:30 +00:00
complex.h Add missing long double functions to Cygwin 2016-03-29 14:43:55 +02:00
cpio.h Add cpio.h 2016-04-04 10:25:27 -05:00
ctype.h Feature test macros overhaul: ctype.h 2016-03-17 21:08:50 -05:00
dirent.h Feature test macros overhaul: dirent.h 2016-03-17 21:08:51 -05:00
envlock.h
envz.h
errno.h
fastmath.h
fcntl.h
fnmatch.h Feature test macros overhaul: fnmatch.h 2016-03-17 21:08:54 -05:00
getopt.h * newlib/libc/include/getopt.h (struct option): name field should be 2013-11-13 09:09:45 +00:00
glob.h 2013-11-21 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-21 17:04:57 +00:00
grp.h Feature test macros overhaul: grp.h 2016-03-17 21:08:56 -05:00
iconv.h 2013-11-20 Daniel Ramirez <javamonn@gmail.com> 2013-11-20 13:39:36 +00:00
ieeefp.h math: guard BSD finite/isinf/isnan functions properly in math.h 2016-04-04 14:13:21 -05:00
inttypes.h Fix for pri and scn formats 2015-08-27 12:50:25 +02:00
langinfo.h
libgen.h Rework handling of basename variants 2015-07-06 14:58:51 -05:00
limits.h Feature test macros overhaul: limits.h 2016-03-17 21:08:57 -05:00
locale.h * libc/include/locale.h (NULL): Fetch definition via stddef.h. 2012-11-01 11:51:12 +00:00
malloc.h * libc/include/malloc.h (struct mallinfo): Convert type of all members 2013-02-26 14:25:13 +00:00
math.h math: update isinf/isnan function comments after move to math.h 2016-04-05 08:49:44 -05:00
newlib.h
paths.h 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-10-15 17:34:23 +00:00
pthread.h pthread.h: Mark pthread_exit() as not returning 2016-03-22 09:48:26 -05:00
pwd.h Feature test macros overhaul: pwd.h 2016-03-17 21:09:01 -05:00
reent.h Eliminate use of Newlib-specific <machine/types.h> 2016-04-13 13:30:27 +02:00
regdef.h
regex.h 2013-11-20 Chirayu Desai <chirayudesai1@gmail.com> 2013-11-20 16:25:50 +00:00
sched.h
search.h 2013-11-20 Daniel Ramirez <javamonn@gmail.com> 2013-11-20 18:22:27 +00:00
setjmp.h * libc/include/setjmp.h (longjmp): Fix copy/paste error. 2014-01-20 17:23:41 +00:00
signal.h Feature test macros overhaul: signal.h 2016-03-17 21:09:03 -05:00
spawn.h * libc/include/spawn.h (posix_spawn_file_actions_destroy): Fix typo 2013-11-25 17:23:30 +00:00
stdatomic.h 2013-09-12 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-09-12 22:05:43 +00:00
stdint.h Improve check for int32_t being long or int 2015-04-29 13:07:17 +02:00
stdio.h stdio: fseeko/ftello are also POSIX.1-2001 2016-03-22 10:50:31 -05:00
stdio_ext.h * libc/include/stdio.h (__SNLK): Define. 2014-12-15 18:22:56 +00:00
stdlib.h Add simple versions of random() and srandom() 2016-03-28 22:39:50 -05:00
string.h Feature test macros overhaul: string.h and strings.h overlaps 2016-04-13 23:50:11 -05:00
strings.h Feature test macros overhaul: string.h and strings.h overlaps 2016-04-13 23:50:11 -05:00
tar.h Feature test macros overhaul: tar.h 2016-04-04 10:25:29 -05:00
termios.h
tgmath.h Add missing long double functions to Cygwin 2016-03-29 14:43:55 +02:00
threads.h Import <threads.h> from latest FreeBSD. 2015-10-13 17:52:34 -04:00
time.h Feature test macros overhaul: time.h 2016-03-17 21:09:10 -05:00
unctrl.h
unistd.h
utime.h
utmp.h
wchar.h Feature test macros overhaul: wchar.h 2016-03-17 21:09:13 -05:00
wctype.h
wordexp.h 2013-11-23 Bryan Dunsmore <dunsmoreb@gmail.com> 2013-11-23 22:39:34 +00:00