diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-12-04 18:10:35 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-12-04 18:10:35 +0100 |
commit | 661dc85d45456fadf27163c4e1cc289ef6bef8c0 (patch) | |
tree | 891c7a583e580fccbb0227d5fbbb4402a0dcacd4 | |
parent | 2fe846f09fc0cb637eadf84e431bc60c5eee45e6 (diff) | |
download | tdv-661dc85d45456fadf27163c4e1cc289ef6bef8c0.tar.gz tdv-661dc85d45456fadf27163c4e1cc289ef6bef8c0.tar.xz tdv-661dc85d45456fadf27163c4e1cc289ef6bef8c0.zip |
Fix macOS build
-rw-r--r-- | src/utils.c | 6 |
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> |