summaryrefslogtreecommitdiff
path: root/src
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
parent3946c490f6d410f91c08884aae912faec70f1e34 (diff)
pull in _POSIX2_LINE_MAX if needed
Diffstat (limited to 'src')
-rw-r--r--src/grp/getgrent.c3
-rw-r--r--src/pwd/getpwent.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/grp/getgrent.c b/src/grp/getgrent.c
index b71b1549..3046d040 100644
--- a/src/grp/getgrent.c
+++ b/src/grp/getgrent.c
@@ -9,6 +9,9 @@
#include "_grp.h"
#ifndef LINE_MAX
+#ifndef _POSIX2_LINE_MAX
+#include "limits/_POSIX2_LINE_MAX.c"
+#endif
#define LINE_MAX _POSIX2_LINE_MAX
#endif
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