From 75b0f38f8ec0cb70250e05ff24e052360f7c114f Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Tue, 2 Dec 2025 07:01:34 -0500 Subject: fileno() prototype --- strio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/strio.h b/strio.h index 9edd306..aede41c 100644 --- a/strio.h +++ b/strio.h @@ -30,6 +30,7 @@ const char *cstr_fmt(Arena *arena, const char *fmt, ...); #if defined(__linux__) || defined(_POSIX_C_SOURCE) #include +int fileno(FILE *); static inline long read_all_file_size(FILE *f) { struct stat b; if (fstat(fileno(f), &b)) return -1; -- cgit v1.2.3