Fix errno redefined warning

This commit is contained in:
Sebastian Huber
2016-11-10 13:25:58 +01:00
parent c418b7a213
commit b01ce52ef4

View File

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