Skip to content

Commit 42b5423

Browse files
authored
Add dirent and socket typedefs. (#558)
1 parent ede7539 commit 42b5423

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/fake_libc_include/_fake_typedefs.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ typedef struct xcb_connection_t xcb_connection_t;
171171
typedef uint32_t xcb_window_t;
172172
typedef uint32_t xcb_visualid_t;
173173

174+
/* dirent typedef */
175+
typedef void* DIR;
176+
177+
/* socket typedefs */
178+
typedef __uint32_t __socklen_t;
179+
typedef __socklen_t socklen_t;
180+
174181
/* C11 stdatomic.h types */
175182
typedef _Atomic(_Bool) atomic_bool;
176183
typedef _Atomic(char) atomic_char;

0 commit comments

Comments
 (0)