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>.
This commit is contained in:
Sebastian Huber 2022-05-18 09:38:12 +02:00
parent 453ff00b5b
commit 15bcf12ffa

View File

@ -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