Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
50455d76
Commit
50455d76
authored
Nov 03, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix includes for win32 compilation
parent
25c8b837
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
62 additions
and
22 deletions
+62
-22
socket/tcp-turn.c
socket/tcp-turn.c
+5
-2
socket/udp-bsd.c
socket/udp-bsd.c
+6
-1
socket/udp-turn.c
socket/udp-turn.c
+0
-1
stun/stun3489bis.h
stun/stun3489bis.h
+6
-1
stun/stunagent.h
stun/stunagent.h
+8
-1
stun/stuncrc32.h
stun/stuncrc32.h
+6
-0
stun/stunmessage.h
stun/stunmessage.h
+6
-1
stun/usages/bind.c
stun/usages/bind.c
+4
-3
stun/usages/bind.h
stun/usages/bind.h
+5
-0
stun/usages/timer.c
stun/usages/timer.c
+8
-2
stun/usages/trans.c
stun/usages/trans.c
+1
-2
stun/usages/trans.h
stun/usages/trans.h
+3
-4
stun/usages/turn.c
stun/usages/turn.c
+0
-3
stun/usages/turn.h
stun/usages/turn.h
+4
-1
No files found.
socket/tcp-turn.c
View file @
50455d76
...
@@ -47,12 +47,15 @@
...
@@ -47,12 +47,15 @@
# include "config.h"
# include "config.h"
#endif
#endif
#include <unistd.h>
#include "tcp-turn.h"
#include <string.h>
#include <string.h>
#include <errno.h>
#include <errno.h>
#include <fcntl.h>
#include <fcntl.h>
#include "tcp-turn.h"
#ifndef G_OS_WIN32
#include <unistd.h>
#endif
typedef
struct
{
typedef
struct
{
NiceUdpTurnSocketCompatibility
compatibility
;
NiceUdpTurnSocketCompatibility
compatibility
;
...
...
socket/udp-bsd.c
View file @
50455d76
...
@@ -46,13 +46,18 @@
...
@@ -46,13 +46,18 @@
#endif
#endif
#include <unistd.h>
#include <string.h>
#include <string.h>
#include <errno.h>
#include <errno.h>
#include <fcntl.h>
#include <fcntl.h>
#include "udp-bsd.h"
#include "udp-bsd.h"
#ifdef G_OS_WIN32
typedef
unsigned
long
ssize_t
;
#else
#include <unistd.h>
#endif
/*** NiceSocket ***/
/*** NiceSocket ***/
static
int
sock_recv_err
(
int
fd
)
static
int
sock_recv_err
(
int
fd
)
{
{
...
...
socket/udp-turn.c
View file @
50455d76
...
@@ -45,7 +45,6 @@
...
@@ -45,7 +45,6 @@
# include "config.h"
# include "config.h"
#endif
#endif
#include <unistd.h>
#include <string.h>
#include <string.h>
#include <errno.h>
#include <errno.h>
#include <fcntl.h>
#include <fcntl.h>
...
...
stun/stun3489bis.h
View file @
50455d76
...
@@ -39,9 +39,14 @@
...
@@ -39,9 +39,14 @@
#ifndef _STUN_3489BIS_H
#ifndef _STUN_3489BIS_H
#define _STUN_3489BIS_H
#define _STUN_3489BIS_H
#ifdef _WIN32
#include "win32_common.h"
#else
# include <stdint.h>
# include <stdint.h>
# include <sys/types.h>
# include <stdbool.h>
# include <stdbool.h>
#endif
# include <sys/types.h>
/**
/**
...
...
stun/stunagent.h
View file @
50455d76
...
@@ -35,9 +35,16 @@
...
@@ -35,9 +35,16 @@
#ifndef _STUN_AGENT_H
#ifndef _STUN_AGENT_H
#define _STUN_AGENT_H
#define _STUN_AGENT_H
#ifdef _WIN32
#include "win32_common.h"
#else
#include <stdint.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdbool.h>
#include <stdbool.h>
#endif
#include <sys/types.h>
typedef
struct
stun_agent_t
StunAgent
;
typedef
struct
stun_agent_t
StunAgent
;
...
...
stun/stuncrc32.h
View file @
50455d76
...
@@ -38,7 +38,13 @@
...
@@ -38,7 +38,13 @@
#ifndef _CRC32_H
#ifndef _CRC32_H
#define _CRC32_H
#define _CRC32_H
#ifdef _WIN32
#include "win32_common.h"
#else
#include <stdint.h>
#include <stdint.h>
#endif
#include <stdlib.h>
#include <stdlib.h>
typedef
struct
{
typedef
struct
{
...
...
stun/stunmessage.h
View file @
50455d76
...
@@ -36,9 +36,14 @@
...
@@ -36,9 +36,14 @@
#define _STUN_MESSAGE_H
#define _STUN_MESSAGE_H
#ifdef _WIN32
#include "win32_common.h"
#else
#include <stdint.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdbool.h>
#include <stdbool.h>
#endif
#include <sys/types.h>
#include "constants.h"
#include "constants.h"
#ifdef _WIN32
#ifdef _WIN32
...
...
stun/usages/bind.c
View file @
50455d76
...
@@ -39,9 +39,13 @@
...
@@ -39,9 +39,13 @@
#ifdef _WIN32
#ifdef _WIN32
#include <winsock2.h>
#include <winsock2.h>
#include "win32_common.h"
#else
#else
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
#include <stdbool.h>
#include <unistd.h>
#include <sys/time.h>
#endif
#endif
#include "bind.h"
#include "bind.h"
...
@@ -50,11 +54,8 @@
...
@@ -50,11 +54,8 @@
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include <time.h>
#include <errno.h>
#include <errno.h>
#include <unistd.h>
#include <sys/time.h>
#include <fcntl.h>
#include <fcntl.h>
#include "timer.h"
#include "timer.h"
#include "trans.h"
#include "trans.h"
...
...
stun/usages/bind.h
View file @
50455d76
...
@@ -41,8 +41,13 @@
...
@@ -41,8 +41,13 @@
* @brief STUN binding discovery
* @brief STUN binding discovery
*/
*/
#ifdef _WIN32
#include "win32_common.h"
#else
# include <stdbool.h>
# include <stdbool.h>
# include <stdint.h>
# include <stdint.h>
#endif
# include "stun/stunagent.h"
# include "stun/stunagent.h"
...
...
stun/usages/timer.c
View file @
50455d76
...
@@ -37,14 +37,20 @@
...
@@ -37,14 +37,20 @@
# include <config.h>
# include <config.h>
#endif
#endif
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#include <sys/time.h>
#include <unistd.h>
#endif
#include "timer.h"
#include "timer.h"
#include <stdlib.h>
/* div() */
#include <stdlib.h>
/* div() */
#include <time.h>
#include <time.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
/**
/**
...
...
stun/usages/trans.c
View file @
50455d76
...
@@ -41,8 +41,6 @@
...
@@ -41,8 +41,6 @@
#include <string.h>
#include <string.h>
#include <assert.h>
#include <assert.h>
#include <sys/time.h>
#include <unistd.h>
#ifdef _WIN32
#ifdef _WIN32
#define ENOENT -1
#define ENOENT -1
...
@@ -58,6 +56,7 @@
...
@@ -58,6 +56,7 @@
#define close closesocket
#define close closesocket
#else
#else
#include <errno.h>
#include <errno.h>
#include <unistd.h>
#endif
#endif
...
...
stun/usages/trans.h
View file @
50455d76
...
@@ -44,16 +44,15 @@
...
@@ -44,16 +44,15 @@
#ifdef _WIN32
#ifdef _WIN32
#include <winsock2.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <ws2tcpip.h>
#include "win32_common.h"
#else
#else
#include <sys/socket.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in.h>
#include <stdint.h>
#include <stdbool.h>
#endif
#endif
#include <stdint.h>
#include <sys/types.h>
#include <sys/types.h>
#include <stdbool.h>
typedef
struct
stun_trans_s
typedef
struct
stun_trans_s
...
...
stun/usages/turn.c
View file @
50455d76
...
@@ -49,9 +49,6 @@
...
@@ -49,9 +49,6 @@
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <sys/time.h>
#include <fcntl.h>
#include <fcntl.h>
...
...
stun/usages/turn.h
View file @
50455d76
...
@@ -40,9 +40,12 @@
...
@@ -40,9 +40,12 @@
* @file bind.h
* @file bind.h
* @brief STUN binding discovery
* @brief STUN binding discovery
*/
*/
#ifdef _WIN32
#include "win32_common.h"
#else
# include <stdbool.h>
# include <stdbool.h>
# include <stdint.h>
# include <stdint.h>
#endif
# include "stun/stunagent.h"
# include "stun/stunagent.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment