Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
sofia-sip
Commits
f3ab0c90
Commit
f3ab0c90
authored
Feb 06, 2007
by
Martti Mela
Browse files
added several HAVE_SELECTs
darcs-hash:20070206154643-1b897-7f230d462a4524aa733686bf0b3b612576ac746f.gz
parent
3b43fe09
Changes
4
Hide whitespace changes
Inline
Side-by-side
libsofia-sip-ua/su/su_poll_port.c
View file @
f3ab0c90
...
...
@@ -35,7 +35,7 @@
#include "config.h"
#if HAVE_POLL || HAVE_
WIN32
#if HAVE_POLL || HAVE_
SELECT
#include <stdlib.h>
#include <assert.h>
...
...
@@ -679,4 +679,4 @@ int su_poll_clone_start(su_root_t *parent,
parent
,
return_clone
,
magic
,
init
,
deinit
);
}
#endif
/* HAVE_POLL */
#endif
/* HAVE_POLL
|| HAVE_SELECT
*/
libsofia-sip-ua/su/su_wait.c
View file @
f3ab0c90
...
...
@@ -149,7 +149,7 @@ int su_wait_create(su_wait_t *newwait, su_socket_t socket, int events)
*
newwait
=
h
;
#elif SU_HAVE_POLL
#elif SU_HAVE_POLL
|| HAVE_SELECT
int
mode
;
if
(
newwait
==
NULL
||
events
==
0
||
socket
==
INVALID_SOCKET
)
{
...
...
@@ -187,7 +187,7 @@ int su_wait_destroy(su_wait_t *waitobj)
su_wait_t
w0
=
NULL
;
if
(
*
waitobj
)
WSACloseEvent
(
*
waitobj
);
#elif SU_HAVE_POLL
#elif SU_HAVE_POLL
|| HAVE_SELECT
su_wait_t
w0
=
{
INVALID_SOCKET
,
0
,
0
};
#else
su_wait_t
w0
=
{
INVALID_SOCKET
,
0
,
0
};
...
...
@@ -233,7 +233,7 @@ int su_wait(su_wait_t waits[], unsigned n, su_duration_t timeout)
else
return
i
;
#elif SU_HAVE_POLL
#elif SU_HAVE_POLL
|| HAVE_SELECT
for
(;;)
{
int
i
=
poll
(
waits
,
n
,
timeout
);
...
...
@@ -275,7 +275,7 @@ int su_wait_events(su_wait_t *waitobj, su_socket_t s)
return
net_events
.
lNetworkEvents
;
#elif SU_HAVE_POLL
#elif SU_HAVE_POLL
|| HAVE_SELECT
/* poll(e, 1, 0); */
return
waitobj
->
revents
;
#endif
...
...
@@ -304,7 +304,7 @@ int su_wait_mask(su_wait_t *waitobj, su_socket_t s, int events)
WSASetLastError
(
error
);
return
-
1
;
}
#elif SU_HAVE_POLL
#elif SU_HAVE_POLL
|| HAVE_SELECT
waitobj
->
fd
=
s
;
waitobj
->
events
=
events
;
waitobj
->
revents
=
0
;
...
...
libsofia-sip-ua/su/test_su.c
View file @
f3ab0c90
...
...
@@ -456,6 +456,8 @@ RETSIGTYPE term(int n)
exit
(
1
);
}
#else
static
char
const
no_alarm
[]
=
""
;
#endif
...
...
libsofia-sip-ua/su/torture_su_port.c
View file @
f3ab0c90
...
...
@@ -124,7 +124,7 @@ static int callback(su_root_magic_t *magic,
magic
->
wakeups
[
i
]
++
;
#if HAVE_POLL
#if HAVE_POLL
|| HAVE_SELECT
if
(
w
->
fd
!=
magic
->
sockets
[
i
])
return
++
magic
->
error
;
#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