From 391b2706c6fc5aedf1881743efa2d0912eefe04a Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Wed, 2 Feb 2022 02:39:57 +0100 Subject: unistd: add __close --- libgcompat/unistd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libgcompat/unistd.c') diff --git a/libgcompat/unistd.c b/libgcompat/unistd.c index e40fb6e..7e9227d 100644 --- a/libgcompat/unistd.c +++ b/libgcompat/unistd.c @@ -234,3 +234,8 @@ int execv(const char *pathname, char *const argv[]) { int execvp(const char *file, char *const argv[]) { return execv(file, argv); } + +int __close(int fd) +{ + return close(fd); +} -- cgit v1.2.3-70-g09d2