wasi-libc exposes getpid() but it doesn't work without emulation

This commit is contained in:
Frank Denis
2021-05-22 11:56:52 +02:00
parent 0e870c5406
commit 63165fd148
+7 -2
View File
@@ -859,9 +859,14 @@ if (&getentropy != NULL) {
[AC_MSG_RESULT(no)
])
])
AC_CHECK_FUNCS([posix_memalign getpid nanosleep])
AS_IF([test "x$WASI" = "x"],[
AC_CHECK_FUNCS([getpid])
AC_CHECK_FUNCS([getauxva elf_aux_info])
])
AC_CHECK_FUNCS([posix_memalign nanosleep])
AC_CHECK_FUNCS([memset_s explicit_bzero explicit_memset])
AC_CHECK_FUNCS([getauxva elf_aux_info])
AC_SUBST([LIBTOOL_EXTRA_FLAGS])