mirror of
https://github.com/Fennix-Project/Userspace.git
synced 2025-05-28 15:34:26 +00:00
Workaround for errno
This commit is contained in:
parent
7c51807812
commit
4953000370
@ -131,7 +131,7 @@
|
|||||||
#define EOWNERDEAD 130 /* Owner died */
|
#define EOWNERDEAD 130 /* Owner died */
|
||||||
#define ENOTRECOVERABLE 131 /* State not recoverable */
|
#define ENOTRECOVERABLE 131 /* State not recoverable */
|
||||||
|
|
||||||
extern int *__errno_location(void) __attribute__((const));
|
extern int *__errno_location(void) __attribute__((const)) __attribute__ ((__nothrow__));
|
||||||
#define errno (*__errno_location())
|
#define errno (*__errno_location())
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
int __local_stub_errno = 0;
|
||||||
|
|
||||||
int *__errno_location(void)
|
int *__errno_location(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return &__local_stub_errno;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user