diff options
-rw-r--r-- | src/gns/w32nsp-resolve.c | 3 | ||||
-rw-r--r-- | src/nat/gnunet-helper-nat-client-windows.c | 2 | ||||
-rw-r--r-- | src/nat/gnunet-helper-nat-server-windows.c | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/gns/w32nsp-resolve.c b/src/gns/w32nsp-resolve.c index 1de1a3657..82f15c6cc 100644 --- a/src/gns/w32nsp-resolve.c +++ b/src/gns/w32nsp-resolve.c | |||
@@ -22,6 +22,9 @@ | |||
22 | * @brief W32 integration for GNS | 22 | * @brief W32 integration for GNS |
23 | * @author LRN | 23 | * @author LRN |
24 | */ | 24 | */ |
25 | /* Instead of including gnunet_common.h */ | ||
26 | #define GNUNET_memcpy(dst,src,n) do { if (0 != n) { (void) memcpy (dst,src,n); } } while (0) | ||
27 | |||
25 | #include <ws2tcpip.h> | 28 | #include <ws2tcpip.h> |
26 | #include <windows.h> | 29 | #include <windows.h> |
27 | #include <nspapi.h> | 30 | #include <nspapi.h> |
diff --git a/src/nat/gnunet-helper-nat-client-windows.c b/src/nat/gnunet-helper-nat-client-windows.c index 89dad9e7b..622f8c961 100644 --- a/src/nat/gnunet-helper-nat-client-windows.c +++ b/src/nat/gnunet-helper-nat-client-windows.c | |||
@@ -42,6 +42,8 @@ | |||
42 | * - Nathan Evans | 42 | * - Nathan Evans |
43 | */ | 43 | */ |
44 | #define _GNU_SOURCE | 44 | #define _GNU_SOURCE |
45 | /* Instead of including gnunet_common.h */ | ||
46 | #define GNUNET_memcpy(dst,src,n) do { if (0 != n) { (void) memcpy (dst,src,n); } } while (0) | ||
45 | 47 | ||
46 | #define FD_SETSIZE 1024 | 48 | #define FD_SETSIZE 1024 |
47 | #include <winsock2.h> | 49 | #include <winsock2.h> |
diff --git a/src/nat/gnunet-helper-nat-server-windows.c b/src/nat/gnunet-helper-nat-server-windows.c index c8e1193e4..09bd02538 100644 --- a/src/nat/gnunet-helper-nat-server-windows.c +++ b/src/nat/gnunet-helper-nat-server-windows.c | |||
@@ -41,6 +41,8 @@ | |||
41 | * - Christian Grothoff | 41 | * - Christian Grothoff |
42 | */ | 42 | */ |
43 | #define _GNU_SOURCE | 43 | #define _GNU_SOURCE |
44 | /* Instead of including gnunet_common.h */ | ||
45 | #define GNUNET_memcpy(dst,src,n) do { if (0 != n) { (void) memcpy (dst,src,n); } } while (0) | ||
44 | 46 | ||
45 | #define FD_SETSIZE 1024 | 47 | #define FD_SETSIZE 1024 |
46 | #include <winsock2.h> | 48 | #include <winsock2.h> |