Signed-off-by: Khem Raj <raj.khem@gmail.com>
#include "internal_errno.h"
/* psm: moved to bits/errno.h: */
-int * weak_const_function __errno_location (void)
+int *
+#ifndef __UCLIBC_HAS_THREADS__
+weak_const_function
+#endif
+__errno_location (void)
{
return &errno;
}
pt-raise pt-system \
flockfile ftrylockfile funlockfile \
sigaction \
+ errno_location \
herrno \
pthread_kill_other_threads \
pthread_getaffinity pthread_setaffinity \
--- /dev/null
+#include <libc/misc/internals/__errno_location.c>