mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 20:18:13 +08:00
Fix errno redefined warning
This commit is contained in:
@@ -40,10 +40,12 @@
|
|||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
#ifndef __rtems__
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int * __error(void);
|
int * __error(void);
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
#define errno (* __error())
|
#define errno (* __error())
|
||||||
|
#endif /* __rtems__ */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __rtems__
|
#ifndef __rtems__
|
||||||
|
Reference in New Issue
Block a user