Mon Jan 12 08:27:07 CST 2009 Pekka Pessi <first.last@nokia.com>
* su_port.c: added #include <sofia-sip/su_string.h> Making poll mechanism name matching case-insensitive. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11811 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
21c92ab2d8
commit
a8ee947d37
|
@ -1 +1 @@
|
||||||
Wed Feb 11 10:53:44 CST 2009
|
Wed Feb 11 10:54:13 CST 2009
|
||||||
|
|
|
@ -44,8 +44,8 @@
|
||||||
#define su_port_s su_virtual_port_s
|
#define su_port_s su_virtual_port_s
|
||||||
|
|
||||||
#include "su_port.h"
|
#include "su_port.h"
|
||||||
|
#include <sofia-sip/su_string.h>
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
/** Create the default su_port_t implementation. */
|
/** Create the default su_port_t implementation. */
|
||||||
|
@ -115,25 +115,25 @@ void su_port_set_system_preferences(char const *name)
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
;
|
;
|
||||||
#if HAVE_EPOLL
|
#if HAVE_EPOLL
|
||||||
else if (strcmp(name, "epoll") == 0) {
|
else if (su_casematch(name, "epoll")) {
|
||||||
create = su_epoll_port_create;
|
create = su_epoll_port_create;
|
||||||
start = su_epoll_clone_start;
|
start = su_epoll_clone_start;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_KQUEUE
|
#if HAVE_KQUEUE
|
||||||
else if (strcmp(name, "kqueue") == 0) {
|
else if (su_casematch(name, "kqueue")) {
|
||||||
create = su_kqueue_port_create;
|
create = su_kqueue_port_create;
|
||||||
start = su_kqueue_clone_start;
|
start = su_kqueue_clone_start;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_SYS_DEVPOLL_H
|
#if HAVE_SYS_DEVPOLL_H
|
||||||
else if (strcmp(name, "devpoll") == 0) {
|
else if (su_casematch(name, "devpoll")) {
|
||||||
create = su_devpoll_port_create;
|
create = su_devpoll_port_create;
|
||||||
start = su_devpoll_clone_start;
|
start = su_devpoll_clone_start;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_POLL_PORT
|
#if HAVE_POLL_PORT
|
||||||
else if (strcmp(name, "poll") == 0) {
|
else if (su_casematch(name, "poll")) {
|
||||||
create = su_poll_port_create;
|
create = su_poll_port_create;
|
||||||
start = su_poll_clone_start;
|
start = su_poll_clone_start;
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ void su_port_set_system_preferences(char const *name)
|
||||||
start = su_wsaevent_clone_start;
|
start = su_wsaevent_clone_start;
|
||||||
}
|
}
|
||||||
#elif HAVE_SELECT
|
#elif HAVE_SELECT
|
||||||
else if (strcmp(name, "select") == 0) {
|
else if (su_casematch(name, "select")) {
|
||||||
create = su_select_port_create;
|
create = su_select_port_create;
|
||||||
start = su_select_clone_start;
|
start = su_select_clone_start;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue