diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-01-05 01:31:22 +0000 |
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-01-05 01:31:22 +0000 |
| commit | 4c607eb71e5bcd3997ea72333c2fe89fc4181b3e (patch) | |
| tree | 0545e22c5fef9674d15013378bf21eada4017ef2 /libc/sysdeps/linux/mips/bits/syscalls.h | |
| parent | 43918e1e747e7d52c2d86565721dd66efc5167e5 (diff) | |
| download | uClibc-alpine-4c607eb71e5bcd3997ea72333c2fe89fc4181b3e.tar.bz2 uClibc-alpine-4c607eb71e5bcd3997ea72333c2fe89fc4181b3e.tar.xz | |
And finally, make 'errno' and TLS variable. The TLS conversion of errno, h_errno and __resp was a real challenge. I am glad that is over with.
Diffstat (limited to 'libc/sysdeps/linux/mips/bits/syscalls.h')
| -rw-r--r-- | libc/sysdeps/linux/mips/bits/syscalls.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/mips/bits/syscalls.h b/libc/sysdeps/linux/mips/bits/syscalls.h index 8645d9d75..09688dd1b 100644 --- a/libc/sysdeps/linux/mips/bits/syscalls.h +++ b/libc/sysdeps/linux/mips/bits/syscalls.h @@ -10,7 +10,11 @@ #include <bits/sysnum.h> #ifndef __set_errno -# define __set_errno(val) (*__errno_location ()) = (val) +# ifdef __UCLIBC_HAS_THREADS__ +# define __set_errno(val) (*__errno_location ()) = (val) +# else +# define __set_errno(val) (errno = (val)) +# endif #endif #ifndef SYS_ify # define SYS_ify(syscall_name) (__NR_##syscall_name) |
