From c5a9d1b2a02e293af2252b6ead8c2226c0337063 Mon Sep 17 00:00:00 2001 From: kevinhendricks Date: Mon, 2 Dec 2024 14:47:40 -0500 Subject: [PATCH] fix to get fileno defintion properly included on linux --- examples/get_title.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/get_title.c b/examples/get_title.c index e6dcdec..99545ec 100644 --- a/examples/get_title.c +++ b/examples/get_title.c @@ -15,6 +15,9 @@ // Author: jdtang@google.com (Jonathan Tang) // // Retrieves the title of a page. +#ifdef __GNUC__ +#define _POSIX_C_SOURCE 1 +#endif #include #include