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:
parent
202ed890a9
commit
8a425955c5
|
@ -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" */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue