From b5cd18739a64c8d923a55b61c89ae3900faafd84 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 21:17:12 +0100 Subject: Fix include paths and formatting inconsistencies --- lib/libc/stdio/pclose.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdio/pclose.c') diff --git a/lib/libc/stdio/pclose.c b/lib/libc/stdio/pclose.c index daae5bf5..241d4de0 100644 --- a/lib/libc/stdio/pclose.c +++ b/lib/libc/stdio/pclose.c @@ -1,10 +1,10 @@ -#include -#include -#include +#include // for __IMPL +#include // for fclose, FILE, pclose +#include // for waitpid int pclose(FILE *stream) { int stat; fclose(stream); - return (waitpid(stream->pid, &stat, 0) < 0) ? -1 : stat; + return (waitpid(__IMPL(stream)->pid, &stat, 0) < 0) ? -1 : stat; } -- cgit v1.2.3