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:
@@ -15,8 +15,8 @@ extern "C"
|
|||||||
#define ENOERR 0
|
#define ENOERR 0
|
||||||
#define EOK ENOERR /* some code assumes EOK exists */
|
#define EOK ENOERR /* some code assumes EOK exists */
|
||||||
|
|
||||||
/* XXX - Fix this once TLS works */
|
extern int *_errnop(void);
|
||||||
extern int errno;
|
#define errno (*(_errnop()))
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* "C" */
|
} /* "C" */
|
||||||
|
|||||||
@@ -3,5 +3,15 @@
|
|||||||
* Simple file to get errno defined!!
|
* 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user