summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-09-11 03:28:21 +0000
committerobrien <obrien@FreeBSD.org>2003-09-11 03:28:21 +0000
commit507c61e2567c01f86e8bea87a37b173318779fb4 (patch)
tree5e33690fb306f544dc7e08d6af8d583cc0d37ab2 /libexec
parentc689dd854794993e407f61317855aef062ed43e6 (diff)
downloadFreeBSD-src-507c61e2567c01f86e8bea87a37b173318779fb4.zip
FreeBSD-src-507c61e2567c01f86e8bea87a37b173318779fb4.tar.gz
Deal with the LOGIN_NAME_MAX issue in the NetBSD->FreeBSD
translation^H^H^Hhack layer.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/lukemftpd/nbsd2fbsd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libexec/lukemftpd/nbsd2fbsd.h b/libexec/lukemftpd/nbsd2fbsd.h
index 49c546b..d060af6 100644
--- a/libexec/lukemftpd/nbsd2fbsd.h
+++ b/libexec/lukemftpd/nbsd2fbsd.h
@@ -15,3 +15,10 @@ typedef __size_t size_t;
#endif
long long strsuftollx(const char *, const char *,
long long, long long, char *, size_t);
+
+/*
+ * IEEE Std 1003.1c-95, adopted in X/Open CAE Specification Issue 5 Version 2
+ */
+#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500
+#define LOGIN_NAME_MAX MAXLOGNAME /* max login name length (incl. NUL) */
+#endif
OpenPOWER on IntegriCloud