aboutsummaryrefslogtreecommitdiff
path: root/ftp/tnftpd/files/patch-tnftpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/tnftpd/files/patch-tnftpd.h')
-rw-r--r--ftp/tnftpd/files/patch-tnftpd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ftp/tnftpd/files/patch-tnftpd.h b/ftp/tnftpd/files/patch-tnftpd.h
new file mode 100644
index 000000000000..018a2a02e118
--- /dev/null
+++ b/ftp/tnftpd/files/patch-tnftpd.h
@@ -0,0 +1,12 @@
+--- tnftpd.h-orig Wed Feb 26 19:16:13 2003
++++ tnftpd.h Sun Aug 3 15:49:57 2003
+@@ -404,6 +404,8 @@
+ #define SECSPERDAY 86400
+ #define TM_YEAR_BASE 1900
+
+-#if ! defined(LOGIN_NAME_MAX)
++#if defined(MAXLOGNAME)
++# define LOGIN_NAME_MAX MAXLOGNAME
++#elif ! defined(LOGIN_NAME_MAX)
+ # define LOGIN_NAME_MAX (9)
+ #endif