diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-18 09:38:12 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-18 09:48:07 +0200 |
commit | 83a979855ac9743b3f3a1286a1a9b7232eb746ce (patch) | |
tree | d4ce7031ead0f2dfc1f016eb9c7a771ff5965100 | |
parent | libc: Avoid conflict with Newlib __sinit() (diff) | |
download | rtems-libbsd-83a979855ac9743b3f3a1286a1a9b7232eb746ce.tar.bz2 |
libc: Include <sys/types.h> for RTEMS
This fixes an issue with a recent Newlib which no longer includes <sys/types.h>
in <stdio.h>.
-rw-r--r-- | freebsd/lib/libc/include/libc_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/lib/libc/include/libc_private.h b/freebsd/lib/libc/include/libc_private.h index fb3a4bb2..4a699e93 100644 --- a/freebsd/lib/libc/include/libc_private.h +++ b/freebsd/lib/libc/include/libc_private.h @@ -36,8 +36,12 @@ #ifndef _LIBC_PRIVATE_H_ #define _LIBC_PRIVATE_H_ +#ifndef __rtems__ #include <sys/_types.h> #include <sys/_pthreadtypes.h> +#else /* __rtems__ */ +#include <sys/types.h> +#endif /* __rtems__ */ /* * This global flag is non-zero when a process has created one |