From 661dc85d45456fadf27163c4e1cc289ef6bef8c0 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Wed, 4 Dec 2024 18:10:35 +0100
Subject: Fix macOS build
---
src/utils.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
(limited to 'src/utils.c')
diff --git a/src/utils.c b/src/utils.c
index 6a6c5d5..0926848 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -16,8 +16,10 @@
*
*/
-// getpwnam_r
-#define _POSIX_C_SOURCE 199506L
+// getpwnam_r, _SC_GETPW_R_SIZE_MAX
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 200112L
+#endif
#include