|
@@ -20,9 +20,10 @@ USA. */
|
|
|
|
|
|
/* We can't use the real errno in ldso, since it has not yet
|
|
/* We can't use the real errno in ldso, since it has not yet
|
|
* been dynamicly linked in yet. */
|
|
* been dynamicly linked in yet. */
|
|
|
|
+#include "sys/syscall.h"
|
|
extern int _dl_errno;
|
|
extern int _dl_errno;
|
|
|
|
+#undef __set_errno
|
|
#define __set_errno(X) {(_dl_errno) = (X);}
|
|
#define __set_errno(X) {(_dl_errno) = (X);}
|
|
-#include "sys/syscall.h"
|
|
|
|
#include <sys/mman.h>
|
|
#include <sys/mman.h>
|
|
|
|
|
|
/* The code below is extracted from libc/sysdeps/linux/frv/_mmap.c */
|
|
/* The code below is extracted from libc/sysdeps/linux/frv/_mmap.c */
|