summaryrefslogtreecommitdiff
path: root/libc/misc/internals/__uClibc_main.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-10-16 02:24:18 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2019-11-01 00:39:10 +0100
commit60eae0def70b8a2e768c6a5bec352da9d648b26c (patch)
tree9317f3e850bbccd618c274a25bd3deadee5f5549 /libc/misc/internals/__uClibc_main.c
parent01e863c89fc772a406fe56c6dddb39f71a570c06 (diff)
riscv64: add shared library support
Diffstat (limited to 'libc/misc/internals/__uClibc_main.c')
-rw-r--r--libc/misc/internals/__uClibc_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index affa0ce0a..6611090bd 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -500,7 +500,6 @@ void __uClibc_main(int (*main)(int, char **, char **), int argc,
#endif
}
# endif
-#endif
/* Note: It is possible that any initialization done above could
* have resulted in errno being set nonzero, so set it to 0 before
@@ -512,6 +511,7 @@ void __uClibc_main(int (*main)(int, char **, char **), int argc,
/* Set h_errno to 0 as well */
if (likely(not_null_ptr(__h_errno_location)))
*(__h_errno_location()) = 0;
+#endif
#if defined HAVE_CLEANUP_JMP_BUF && defined __UCLIBC_HAS_THREADS_NATIVE__
/* Memory for the cancellation buffer. */