diff options
author | Youness Alaoui <kakaroto@kakaroto.(none)> | 2008-11-03 16:34:05 -0500 |
---|---|---|
committer | Youness Alaoui <kakaroto@kakaroto.(none)> | 2008-11-03 16:34:05 -0500 |
commit | 50455d76f185221487087c873e47be5a5fc912d6 (patch) | |
tree | 21b53bab717418e4f6cf5161e11e62af1fcae863 /socket | |
parent | 25c8b83757b373b80404f0f54fcbed263c250e6d (diff) | |
download | libnice-50455d76f185221487087c873e47be5a5fc912d6.tar.gz |
Fix includes for win32 compilation
Diffstat (limited to 'socket')
-rw-r--r-- | socket/tcp-turn.c | 7 | ||||
-rw-r--r-- | socket/udp-bsd.c | 7 | ||||
-rw-r--r-- | socket/udp-turn.c | 1 |
3 files changed, 11 insertions, 4 deletions
diff --git a/socket/tcp-turn.c b/socket/tcp-turn.c index 82b4a1a..3cc09a1 100644 --- a/socket/tcp-turn.c +++ b/socket/tcp-turn.c @@ -47,12 +47,15 @@ # include "config.h" #endif -#include <unistd.h> +#include "tcp-turn.h" + #include <string.h> #include <errno.h> #include <fcntl.h> -#include "tcp-turn.h" +#ifndef G_OS_WIN32 +#include <unistd.h> +#endif typedef struct { NiceUdpTurnSocketCompatibility compatibility; diff --git a/socket/udp-bsd.c b/socket/udp-bsd.c index 1a2cb14..bf8a058 100644 --- a/socket/udp-bsd.c +++ b/socket/udp-bsd.c @@ -46,13 +46,18 @@ #endif -#include <unistd.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include "udp-bsd.h" +#ifdef G_OS_WIN32 +typedef unsigned long ssize_t; +#else +#include <unistd.h> +#endif + /*** NiceSocket ***/ static int sock_recv_err (int fd) { diff --git a/socket/udp-turn.c b/socket/udp-turn.c index 4d0acfa..ae05047 100644 --- a/socket/udp-turn.c +++ b/socket/udp-turn.c @@ -45,7 +45,6 @@ # include "config.h" #endif -#include <unistd.h> #include <string.h> #include <errno.h> #include <fcntl.h> |