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
ddd7c552
Commit
ddd7c552
authored
Oct 29, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add correct includes and define close as closesocket for windows
parent
c68e6109
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
socket/socket.h
socket/socket.h
+10
-0
stun/tests/test-bind.c
stun/tests/test-bind.c
+1
-0
stun/tests/test-turn.c
stun/tests/test-turn.c
+1
-0
stun/usages/trans.c
stun/usages/trans.c
+2
-0
No files found.
socket/socket.h
View file @
ddd7c552
...
@@ -40,6 +40,16 @@
...
@@ -40,6 +40,16 @@
#include "address.h"
#include "address.h"
#ifdef G_OS_WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
G_BEGIN_DECLS
G_BEGIN_DECLS
typedef
struct
_NiceSocket
NiceSocket
;
typedef
struct
_NiceSocket
NiceSocket
;
...
...
stun/tests/test-bind.c
View file @
ddd7c552
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
#define MSG_NOSIGNAL 0
#define MSG_NOSIGNAL 0
#define alarm(...)
#define alarm(...)
#define close closesocket
#else
#else
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
...
...
stun/tests/test-turn.c
View file @
ddd7c552
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
#define MSG_NOSIGNAL 0
#define MSG_NOSIGNAL 0
#define alarm(...)
#define alarm(...)
#define close closesocket
#else
#else
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
...
...
stun/usages/trans.c
View file @
ddd7c552
...
@@ -54,6 +54,8 @@
...
@@ -54,6 +54,8 @@
#define EINPROGRESS -7
#define EINPROGRESS -7
#define EAGAIN -8
#define EAGAIN -8
#define ENOSYS -9
#define ENOSYS -9
#define close closesocket
#else
#else
#include <errno.h>
#include <errno.h>
#endif
#endif
...
...
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