mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 11:59:33 +08:00
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:
parent
453ff00b5b
commit
15bcf12ffa
@ -36,8 +36,12 @@
|
|||||||
|
|
||||||
#ifndef _LIBC_PRIVATE_H_
|
#ifndef _LIBC_PRIVATE_H_
|
||||||
#define _LIBC_PRIVATE_H_
|
#define _LIBC_PRIVATE_H_
|
||||||
|
#ifndef __rtems__
|
||||||
#include <sys/_types.h>
|
#include <sys/_types.h>
|
||||||
#include <sys/_pthreadtypes.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
|
* This global flag is non-zero when a process has created one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user