From eee6ee7566e26f2535eb6088c8494a112ff423b9 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 14 May 2019 11:43:37 -0700 Subject: [PATCH] Don't declare popen and pclose. --- libc-top-half/musl/include/stdio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc-top-half/musl/include/stdio.h b/libc-top-half/musl/include/stdio.h index afdcdc0..0c3aff9 100644 --- a/libc-top-half/musl/include/stdio.h +++ b/libc-top-half/musl/include/stdio.h @@ -157,8 +157,10 @@ FILE *tmpfile(void) __attribute__((__deprecated__("tmpfile is not defined on WAS FILE *fmemopen(void *__restrict, size_t, const char *__restrict); FILE *open_memstream(char **, size_t *); FILE *fdopen(int, const char *); +#ifdef __wasilibc_unmodified_upstream /* WASI has no popen */ FILE *popen(const char *, const char *); int pclose(FILE *); +#endif int fileno(FILE *); int fseeko(FILE *, off_t, int); off_t ftello(FILE *);