From a766502f86368b62e65cb95f35c405a320a6b4f2 Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Fri, 6 Oct 2023 10:34:10 +0500 Subject: [PATCH] Fix not compiling on mac --- src/kilo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kilo.c b/src/kilo.c index cea931f..04c1807 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -1,4 +1,5 @@ -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200112L +#define _DARWIN_C_SOURCE #include #include