aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-12-04 18:10:35 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-12-04 18:10:35 +0100
commit661dc85d45456fadf27163c4e1cc289ef6bef8c0 (patch)
tree891c7a583e580fccbb0227d5fbbb4402a0dcacd4 /src
parent2fe846f09fc0cb637eadf84e431bc60c5eee45e6 (diff)
downloadtdv-661dc85d45456fadf27163c4e1cc289ef6bef8c0.tar.gz
tdv-661dc85d45456fadf27163c4e1cc289ef6bef8c0.tar.xz
tdv-661dc85d45456fadf27163c4e1cc289ef6bef8c0.zip
Fix macOS build
Diffstat (limited to 'src')
-rw-r--r--src/utils.c6
1 files changed, 4 insertions, 2 deletions
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 <glib.h>
#include <glib/gprintf.h>