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/dirent/fdopendir.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/libc/dirent/fdopendir.c') diff --git a/lib/libc/dirent/fdopendir.c b/lib/libc/dirent/fdopendir.c index 469992c1..c0e3492b 100644 --- a/lib/libc/dirent/fdopendir.c +++ b/lib/libc/dirent/fdopendir.c @@ -1,20 +1,20 @@ -#include -#include <__dirent.h> -#include -#include -#include -#include +#include "stddef.h" // for NULL + +#include <__dirent.h> // for __DIR +#include // for DIR, fdopendir +#include // for EBADF, errno +#include // for calloc DIR *fdopendir(int fildes) { - DIR *dir; + struct __DIR *dir; if (fildes < 0) { errno = EBADF; return NULL; } - if ((dir = calloc(1, sizeof(DIR))) == NULL) { + if ((dir = calloc(1, sizeof(struct __DIR))) == NULL) { return NULL; } -- cgit v1.2.3