aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-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>