1
0
Fork 0
forked from len0rd/rockbox

Allow building simulators on systems where errno is thread-local by using the system's implementation of errno.h for simulator builds.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8871 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-02-28 23:56:44 +00:00
parent ef4e43822f
commit b4ada860b3
5 changed files with 10 additions and 12 deletions

View file

@ -1,6 +1,12 @@
/* errno is not a global variable, because that would make using it
non-reentrant. Instead, its address is returned by the function
__errno. */
#if defined(SIMULATOR) && !defined(__MINGW32__) && !defined(__CYGWIN__)
#include "/usr/include/errno.h" /* use the host system implementation */
#else /* use our own implementation */
#ifndef _SYS_ERRNO_H_
@ -132,3 +138,4 @@ extern int errno;
#define __ELASTERROR 2000 /* Users can add values starting here */
#endif /* _SYS_ERRNO_H */
#endif /* !SIMULATOR */