]> git.pld-linux.org Git - packages/ftpd-BSD.git/blame - ftpd-BSD-SA_LEN.patch
- updated for 0.3.3.
[packages/ftpd-BSD.git] / ftpd-BSD-SA_LEN.patch
CommitLineData
68cf7465 1--- ftpd-BSD-0.3.2/ftpd.c.orig Thu Apr 5 16:45:08 2001
2+++ ftpd-BSD-0.3.2/ftpd.c Thu Apr 5 16:55:57 2001
c8eb4cc1
JB
3@@ -300,6 +300,11 @@
4 }
5 #endif /* ORIGINAL_SOURCE */
6
7+#ifndef SA_LEN
8+#define SA_LEN(x) (((x)->sa_family == AF_INET6) ? sizeof(struct sockaddr_in6) : \
9+ (((x)->sa_family == AF_INET)?sizeof(struct sockaddr_in):sizeof(struct sockaddr)))
10+#endif
11+
12 static void ack __P((char *));
13 static void myoob __P((int));
14 static int checkuser __P((char *, char *));
This page took 0.023822 seconds and 4 git commands to generate.