diff --git a/src/stdio/popen.c b/src/stdio/popen.c index 50765daa3f2d899848e69fc78f66f309a96c8de9..4f9d6e9ec92a95b85507d2a42dc6187b1809898b 100644 --- a/src/stdio/popen.c +++ b/src/stdio/popen.c @@ -1,4 +1,11 @@ #include "stdio_impl.h" +#include "syscall.h" + +static inline void nc_close(int fd) +{ + __syscall(SYS_close, fd); +} +#define close(x) nc_close(x) FILE *popen(const char *cmd, const char *mode) {