From 090397a38cf98e2cf0f36f91d6133c33d33d268b Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Sun, 17 Nov 2024 16:55:40 +0100 Subject: [PATCH] Add dirent and socket typedefs. --- utils/fake_libc_include/_fake_typedefs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/fake_libc_include/_fake_typedefs.h b/utils/fake_libc_include/_fake_typedefs.h index 3be1462d..b15e50ee 100644 --- a/utils/fake_libc_include/_fake_typedefs.h +++ b/utils/fake_libc_include/_fake_typedefs.h @@ -171,6 +171,13 @@ typedef struct xcb_connection_t xcb_connection_t; typedef uint32_t xcb_window_t; typedef uint32_t xcb_visualid_t; +/* dirent typedef */ +typedef void* DIR; + +/* socket typedefs */ +typedef __uint32_t __socklen_t; +typedef __socklen_t socklen_t; + /* C11 stdatomic.h types */ typedef _Atomic(_Bool) atomic_bool; typedef _Atomic(char) atomic_char;