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 8aedf47338
commit fd8215d29d

View File

@ -859,7 +859,13 @@ if (&getentropy != NULL) {
[AC_MSG_RESULT(no) [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([memset_s explicit_bzero explicit_memset])
AC_SUBST([LIBTOOL_EXTRA_FLAGS]) AC_SUBST([LIBTOOL_EXTRA_FLAGS])