aboutsummaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2005-07-16 19:12:05 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2005-07-16 19:12:05 +0000
commita774e7375390afc44dfea2ad83deffe473fe9fe4 (patch)
treeefeeeb5852d77dc12982849266b9259ae96b2655 /ftp
parent7db9a34faa9c4be622e7014132080cacb2b5cbb4 (diff)
downloadports-a774e7375390afc44dfea2ad83deffe473fe9fe4.tar.gz
ports-a774e7375390afc44dfea2ad83deffe473fe9fe4.zip
Notes
Diffstat (limited to 'ftp')
-rw-r--r--ftp/wzdftpd/files/patch-src-wzd_types.h35
1 files changed, 27 insertions, 8 deletions
diff --git a/ftp/wzdftpd/files/patch-src-wzd_types.h b/ftp/wzdftpd/files/patch-src-wzd_types.h
index ba578926e3ab..c1bc551624c1 100644
--- a/ftp/wzdftpd/files/patch-src-wzd_types.h
+++ b/ftp/wzdftpd/files/patch-src-wzd_types.h
@@ -1,11 +1,30 @@
---- src/wzd_types.h.orig Thu Jul 14 22:20:41 2005
-+++ src/wzd_types.h Thu Jul 14 22:21:11 2005
-@@ -43,6 +43,8 @@
- # include <inttypes.h>
+--- src/wzd_types.h.orig Sat Jul 16 23:12:40 2005
++++ src/wzd_types.h Sat Jul 16 23:13:32 2005
+@@ -359,21 +359,19 @@
+ /* definitions for windows 2000 */
+ #if defined(_MSC_VER) && defined(WINVER) && (WINVER < 0x0501)
+ #define in6_addr in_addr6 /* funny ! */
+-
+ #define socklen_t unsigned int
+-
+-#ifndef IN6_IS_ADDR_V4MAPPED
+-#define IN6_IS_ADDR_V4MAPPED(a) \
+- ((((const ULONG *)(a))[0] == 0) \
+- && (((const ULONG *)(a))[1] == 0) \
+- && (((const ULONG *)(a))[2] == htonl (0xffff)))
+-#endif
+ #endif /* WINVER */
+
+ #ifndef INADDR_NONE
+ # define INADDR_NONE ((unsigned long int) 0xffffffff)
#endif
-+#include <netinet/in.h>
-+
- /* win32-common definitions */
- #if defined (WIN32)
++#ifndef IN6_IS_ADDR_V4MAPPED
++#define IN6_IS_ADDR_V4MAPPED(a) \
++ ((((const ULONG *)(a))[0] == 0) \
++ && (((const ULONG *)(a))[1] == 0) \
++ && (((const ULONG *)(a))[2] == htonl (0xffff)))
++#endif /* IN6_IS_ADDR_V4MAPPED */
+ #ifndef MAX
+ #define MAX(x,y) ((x) > (y) ? (x) : (y))