summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stdio/popen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stdio/popen.c b/src/stdio/popen.c
index 50765daa..4f9d6e9e 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)
{