summaryrefslogtreecommitdiff
path: root/src/pwd
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 21:32:52 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 21:32:52 -0400
commit3448597bff1103d603a611f5df29ce5a91466126 (patch)
tree63dec4cdd6c4eb55ee3180f49bf10eda6a2b4217 /src/pwd
parent3946c490f6d410f91c08884aae912faec70f1e34 (diff)
pull in _POSIX2_LINE_MAX if needed
Diffstat (limited to 'src/pwd')
-rw-r--r--src/pwd/getpwent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pwd/getpwent.c b/src/pwd/getpwent.c
index c2718692..675f8aa3 100644
--- a/src/pwd/getpwent.c
+++ b/src/pwd/getpwent.c
@@ -9,6 +9,9 @@
#include "_pwd.h"
#ifndef LINE_MAX
+#ifndef _POSIX2_LINE_MAX
+#include "limits/_POSIX2_LINE_MAX.c"
+#endif
#define LINE_MAX _POSIX2_LINE_MAX
#endif