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
b4c907d3
Commit
b4c907d3
authored
Oct 28, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correctly ifdef/else/endif the includes for winsock and sys/socket
parent
31b64266
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
68 additions
and
11 deletions
+68
-11
agent/agent.c
agent/agent.c
+6
-3
stun/stun3489bis.c
stun/stun3489bis.c
+5
-0
stun/stunmessage.h
stun/stunmessage.h
+7
-0
stun/tools/stunbdc.c
stun/tools/stunbdc.c
+4
-2
stun/usages/bind.c
stun/usages/bind.c
+4
-0
stun/usages/ice.c
stun/usages/ice.c
+15
-2
stun/usages/trans.c
stun/usages/trans.c
+15
-2
stun/usages/turn.c
stun/usages/turn.c
+4
-0
stun/utils.c
stun/utils.c
+8
-2
No files found.
agent/agent.c
View file @
b4c907d3
...
@@ -45,15 +45,18 @@
...
@@ -45,15 +45,18 @@
# include <config.h>
# include <config.h>
#endif
#endif
#include <glib.h>
#include <string.h>
#include <string.h>
#include <errno.h>
#include <errno.h>
#include <sys/select.h>
#ifdef G_OS_WIN32
#include <winsock2.h>
#else
#include <sys/socket.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <arpa/inet.h>
#endif
#include <glib.h>
#include "debug.h"
#include "debug.h"
...
...
stun/stun3489bis.c
View file @
b4c907d3
...
@@ -39,8 +39,13 @@
...
@@ -39,8 +39,13 @@
# include <config.h>
# include <config.h>
#endif
#endif
#ifdef _WIN32
#include <winsock2.h>
#else
#include <sys/socket.h>
#include <sys/socket.h>
#include <netinet/in.h>
/* htons() */
#include <netinet/in.h>
/* htons() */
#endif
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
stun/stunmessage.h
View file @
b4c907d3
...
@@ -41,6 +41,13 @@
...
@@ -41,6 +41,13 @@
#include <stdbool.h>
#include <stdbool.h>
#include "constants.h"
#include "constants.h"
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#endif
typedef
struct
stun_message_t
StunMessage
;
typedef
struct
stun_message_t
StunMessage
;
/* Message classes */
/* Message classes */
...
...
stun/tools/stunbdc.c
View file @
b4c907d3
...
@@ -37,14 +37,16 @@
...
@@ -37,14 +37,16 @@
# include <config.h>
# include <config.h>
#endif
#endif
#i
nclude <sys/types.h>
#i
fndef _WIN32
#include <sys/socket.h>
#include <sys/socket.h>
#include <netdb.h>
#include <sys/types.h>
#include "stun/stunagent.h"
#include "stun/stunagent.h"
#include "stun/usages/bind.h"
#include "stun/usages/bind.h"
#include <unistd.h>
#include <unistd.h>
#include <getopt.h>
#include <getopt.h>
#include <netdb.h>
#include <errno.h>
#include <errno.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
stun/usages/bind.c
View file @
b4c907d3
...
@@ -37,8 +37,12 @@
...
@@ -37,8 +37,12 @@
# include <config.h>
# include <config.h>
#endif
#endif
#ifdef _WIN32
#include <winsock2.h>
#else
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
#endif
#include "bind.h"
#include "bind.h"
#include "stun/stunagent.h"
#include "stun/stunagent.h"
...
...
stun/usages/ice.c
View file @
b4c907d3
...
@@ -40,11 +40,24 @@
...
@@ -40,11 +40,24 @@
#include <string.h>
#include <string.h>
#include <assert.h>
#include <assert.h>
#ifdef _WIN32
#include <winsock2.h>
#define ENOENT -1
#define EINVAL -2
#define ENOBUFS -3
#define EAFNOSUPPORT -4
#define EPROTO -5
#define EACCES -6
#define EINPROGRESS -7
#else
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
#include "stunagent.h"
#include <errno.h>
#include <arpa/inet.h>
#include <arpa/inet.h>
#include <errno.h>
#endif
#include "stunagent.h"
/** ICE connectivity checks **/
/** ICE connectivity checks **/
#include "ice.h"
#include "ice.h"
...
...
stun/usages/trans.c
View file @
b4c907d3
...
@@ -41,11 +41,24 @@
...
@@ -41,11 +41,24 @@
#include <string.h>
#include <string.h>
#include <assert.h>
#include <assert.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/time.h>
#include <unistd.h>
#include <unistd.h>
#ifdef _WIN32
#define ENOENT -1
#define EINVAL -2
#define ENOBUFS -3
#define EAFNOSUPPORT -4
#define EPROTO -5
#define EACCES -6
#define EINPROGRESS -7
#define EAGAIN -8
#define ENOSYS -9
#else
#include <errno.h>
#include <errno.h>
#include <netinet/in.h>
#endif
#ifdef HAVE_POLL
#ifdef HAVE_POLL
# include <poll.h>
# include <poll.h>
#endif
#endif
...
...
stun/usages/turn.c
View file @
b4c907d3
...
@@ -37,8 +37,12 @@
...
@@ -37,8 +37,12 @@
# include <config.h>
# include <config.h>
#endif
#endif
#ifdef _WIN32
#include <winsock2.h>
#else
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
#endif
#include "stun/stunagent.h"
#include "stun/stunagent.h"
#include "turn.h"
#include "turn.h"
...
...
stun/utils.c
View file @
b4c907d3
...
@@ -41,10 +41,16 @@
...
@@ -41,10 +41,16 @@
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdarg.h>
#include <sys/socket.h>
#include <netinet/in.h>
#ifdef _WIN32
#define ENOENT -1
#define EINVAL -2
#define ENOBUFS -3
#define EAFNOSUPPORT -4
#else
#include <errno.h>
#include <errno.h>
#endif
#include "utils.h"
#include "utils.h"
/** Compares two socket addresses
/** Compares two socket addresses
...
...
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