diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-07-20 08:08:30 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-07-20 08:08:30 +0000 |
commit | d24a9aee403d6540ec792d3b56a1934fbc0969d4 (patch) | |
tree | 0706522f9173a479f4f3af4e6fbf1e1cddb9ef2b /pjlib/src/pjlib-test/util.c | |
parent | c3f4bae326d9e2dfa78d23f288e822e7ae16c2db (diff) |
Ticket #354: build PJLIB as dynamic libraries (.DSO) in Symbian
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1405 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pjlib-test/util.c')
-rw-r--r-- | pjlib/src/pjlib-test/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pjlib/src/pjlib-test/util.c b/pjlib/src/pjlib-test/util.c index a38c0764..4f68b25b 100644 --- a/pjlib/src/pjlib-test/util.c +++ b/pjlib/src/pjlib-test/util.c @@ -53,7 +53,7 @@ pj_status_t app_socket(int family, int type, int proto, int port, return rc; #if PJ_HAS_TCP - if (type == PJ_SOCK_STREAM) { + if (type == pj_SOCK_STREAM()) { rc = pj_sock_listen(sock, 5); if (rc != PJ_SUCCESS) return rc; @@ -86,7 +86,7 @@ pj_status_t app_socketpair(int family, int type, int protocol, /* Retry bind */ pj_bzero(&addr, sizeof(addr)); - addr.sin_family = PJ_AF_INET; + addr.sin_family = pj_AF_INET(); for (i=0; i<5; ++i) { addr.sin_port = pj_htons(port++); rc = pj_sock_bind(sock[SERVER], &addr, sizeof(addr)); @@ -99,7 +99,7 @@ pj_status_t app_socketpair(int family, int type, int protocol, /* For TCP, listen the socket. */ #if PJ_HAS_TCP - if (type == PJ_SOCK_STREAM) { + if (type == pj_SOCK_STREAM()) { rc = pj_sock_listen(sock[SERVER], PJ_SOMAXCONN); if (rc != PJ_SUCCESS) goto on_error; @@ -114,7 +114,7 @@ pj_status_t app_socketpair(int family, int type, int protocol, /* For TCP, must accept(), and get the new socket. */ #if PJ_HAS_TCP - if (type == PJ_SOCK_STREAM) { + if (type == pj_SOCK_STREAM()) { pj_sock_t newserver; rc = pj_sock_accept(sock[SERVER], &newserver, NULL, NULL); |