From 507c61e2567c01f86e8bea87a37b173318779fb4 Mon Sep 17 00:00:00 2001 From: obrien Date: Thu, 11 Sep 2003 03:28:21 +0000 Subject: Deal with the LOGIN_NAME_MAX issue in the NetBSD->FreeBSD translation^H^H^Hhack layer. --- libexec/lukemftpd/nbsd2fbsd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libexec/lukemftpd') 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 -- cgit v1.1