]> git.pld-linux.org Git - packages/ffingerd.git/commitdiff
- SA_LEN patch - tnx misiek :)
authorPaweł Gołaszewski <blues@pld-linux.org>
Tue, 14 Aug 2001 18:13:42 +0000 (18:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ffingerd-SA_LEN.patch -> 1.1

ffingerd-SA_LEN.patch [new file with mode: 0644]

diff --git a/ffingerd-SA_LEN.patch b/ffingerd-SA_LEN.patch
new file mode 100644 (file)
index 0000000..3ac785d
--- /dev/null
@@ -0,0 +1,16 @@
+diff -urN ffingerd-1.28.org/ffingerd.c ffingerd-1.28/ffingerd.c
+--- ffingerd-1.28.org/ffingerd.c        Sun Aug 12 17:34:04 2001
++++ ffingerd-1.28/ffingerd.c    Sun Aug 12 17:35:50 2001
+@@ -72,6 +72,11 @@
+ #define PATH_MAX 256
+ #endif
+
++#ifndef SA_LEN
++#define SA_LEN(x) (((x)->sa_family == AF_INET6)?sizeof(struct sockaddr_in6): \
++       (((x)->sa_family == AF_INET)?sizeof(struct sockaddr_in):sizeof(struct sockaddr)))
++#endif
++
+ #ifdef __STDC__
+ void dump_file(char *filename,char *found_message,char *not_found_message) {
+ #else
+
This page took 0.213908 seconds and 4 git commands to generate.