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