summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/sock_bsd.c
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2011-04-26 03:07:24 +0000
committerLiong Sauw Ming <ming@teluu.com>2011-04-26 03:07:24 +0000
commit0af1d2bb99bc9068a06d65511af68bd10f731ba2 (patch)
tree715329f32d2daf544d05d7ae956d9830f242d282 /pjlib/src/pj/sock_bsd.c
parentd8dc4b6a36d794d9589630be96b9eb7e9b142f1a (diff)
Fixed #1246: Use CFHost for pj_getaddrinfo() on iOS
* Replace the fix for ticket #1104 with this fix * Modify pjturn-client/client_main's shutdown() function which conflicts with an existing function Re-run configure-iphone to use this fix automatically. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3543 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/sock_bsd.c')
-rw-r--r--pjlib/src/pj/sock_bsd.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/pjlib/src/pj/sock_bsd.c b/pjlib/src/pj/sock_bsd.c
index f39beca5..d89a5281 100644
--- a/pjlib/src/pj/sock_bsd.c
+++ b/pjlib/src/pj/sock_bsd.c
@@ -456,23 +456,6 @@ PJ_DEF(const pj_str_t*) pj_gethostname(void)
hostname.slen = 0;
} else {
hostname.slen = strlen(buf);
-#if defined(PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX) && \
- PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX!=0
- {
- const pj_str_t suffix = {".local", 6};
-
- if (hostname.slen < suffix.slen ||
- pj_ansi_strnicmp(hostname.ptr + hostname.slen -
- suffix.slen, suffix.ptr, suffix.slen))
- {
- if (hostname.slen + suffix.slen + 1 < sizeof(buf))
- pj_strcat(&hostname, &suffix);
- else
- hostname.slen = 0;
- hostname.ptr[hostname.slen] = '\0';
- }
- }
-#endif
}
}
return &hostname;