aboutsummaryrefslogtreecommitdiff
path: root/libexec/lukemftpd
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2003-09-11 03:28:21 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2003-09-11 03:28:21 +0000
commit1569f861d789ffba933f9ab48e6516ecd40663cd (patch)
tree5e33690fb306f544dc7e08d6af8d583cc0d37ab2 /libexec/lukemftpd
parent5c5967082fddbde704f1ec0d3511dc53a1491150 (diff)
downloadsrc-1569f861d789ffba933f9ab48e6516ecd40663cd.tar.gz
src-1569f861d789ffba933f9ab48e6516ecd40663cd.zip
Deal with the LOGIN_NAME_MAX issue in the NetBSD->FreeBSD
translation^H^H^Hhack layer.
Notes
Notes: svn path=/head/; revision=119975
Diffstat (limited to 'libexec/lukemftpd')
-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 49c546b8b7a6..d060af6cd5b6 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