The header is now compatible with R5's libroot.so.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1947 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2002-11-15 17:37:55 +00:00
parent 202ed890a9
commit 8a425955c5
2 changed files with 13 additions and 3 deletions

View File

@ -15,8 +15,8 @@ extern "C"
#define ENOERR 0
#define EOK ENOERR /* some code assumes EOK exists */
/* XXX - Fix this once TLS works */
extern int errno;
extern int *_errnop(void);
#define errno (*(_errnop()))
#ifdef __cplusplus
} /* "C" */

View File

@ -3,5 +3,15 @@
* Simple file to get errno defined!!
*/
int errno;
#include <errno.h>
/* XXX - Fix this once TLS works */
static int errno_storage;
int*
_errnop(void)
{
return &errno_storage;
}