summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2025-12-02 07:01:34 -0500
committerWormHeamer2025-12-02 07:01:34 -0500
commit75b0f38f8ec0cb70250e05ff24e052360f7c114f (patch)
tree6bb99df5801455605938be4d750784437169966a
parent9a33bc820266891cec4205ec9bd6e22bacf36790 (diff)
fileno() prototype
-rw-r--r--strio.h1
1 files changed, 1 insertions, 0 deletions
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 <sys/stat.h>
+int fileno(FILE *);
static inline long read_all_file_size(FILE *f) {
struct stat b;
if (fstat(fileno(f), &b)) return -1;