]> sourceware.org Git - newlib-cygwin.git/commit
Fix <sys/_types.h> issues with <stddef.h>
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 16 May 2019 12:40:34 +0000 (14:40 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 3 Jun 2019 08:20:15 +0000 (10:20 +0200)
commitf5a5a23ea8c73f9d2a2fdcb471883989f23f9e4b
treee27fd759f462a71092ea06819247be9d459e1b0b
parent86809750bb4e6b0cda331ae9919f3d0e9bd53586
Fix <sys/_types.h> issues with <stddef.h>

A commit from 2016 tried to address this GCC provided <stddef.h> issue

    #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

with an include of <stddef.h> before <sys/_types.h> in <sys/types.h>.
Is is not robust enough.  Do the include of <stddef.h> in <sys/_types.h>
directly and request only the necessary types.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
newlib/libc/include/sys/_types.h
newlib/libc/include/sys/types.h
This page took 0.029305 seconds and 5 git commands to generate.