Mercurial > pidgin
changeset 15975:328ae2c041c3
fix win32 build for nat-pmp stuff. I haven't tested it, but it compiles.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sat, 31 Mar 2007 21:48:11 +0000 |
parents | 1a12ce76c4f4 |
children | a6a79b8616bf |
files | libpurple/Makefile.mingw libpurple/nat-pmp.c libpurple/nat-pmp.h |
diffstat | 3 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/Makefile.mingw Sat Mar 31 20:33:54 2007 +0000 +++ b/libpurple/Makefile.mingw Sat Mar 31 21:48:11 2007 +0000 @@ -48,6 +48,7 @@ imgstore.c \ log.c \ mime.c \ + nat-pmp.c \ network.c \ notify.c \ ntlm.c \
--- a/libpurple/nat-pmp.c Sat Mar 31 20:33:54 2007 +0000 +++ b/libpurple/nat-pmp.c Sat Mar 31 21:48:11 2007 +0000 @@ -33,23 +33,25 @@ #include "signals.h" #include "network.h" +#include <sys/types.h> +#ifndef _WIN32 #include <arpa/inet.h> #include <netinet/in.h> -#include <sys/types.h> #include <sys/socket.h> #include <sys/sysctl.h> +#include <net/if.h> #include <net/route.h> #include <netdb.h> +#include <err.h> +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <err.h> #include <errno.h> -#include <sys/types.h> -#include <net/if.h> #ifdef NET_RT_DUMP
--- a/libpurple/nat-pmp.h Sat Mar 31 20:33:54 2007 +0000 +++ b/libpurple/nat-pmp.h Sat Mar 31 21:48:11 2007 +0000 @@ -72,5 +72,6 @@ * @returns TRUE if succesful; FALSE if unsuccessful */ gboolean purple_pmp_destroy_map(PurplePmpType type, unsigned short privateport); - -#endif \ No newline at end of file + +#endif +