summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2010-07-23 04:27:32 +0000
committerLiong Sauw Ming <ming@teluu.com>2010-07-23 04:27:32 +0000
commit311528e2bc573606fb611175fbd7b981780664e2 (patch)
treee58451fa56d86c7f3556f36d858f3bb3250202b4
parent2493e2b525ad94e031c40acb5506fc5e1cd99266 (diff)
Re #1104: Fixed iPhone OS version detection in os_auto.h.in
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3240 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjlib/include/pj/compat/os_auto.h.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/pjlib/include/pj/compat/os_auto.h.in b/pjlib/include/pj/compat/os_auto.h.in
index 35ccf0c3..6fe3276e 100644
--- a/pjlib/include/pj/compat/os_auto.h.in
+++ b/pjlib/include/pj/compat/os_auto.h.in
@@ -172,9 +172,11 @@
/* Append ".local" suffix to the system's hostname? */
#if defined(PJ_DARWINOS) && PJ_DARWINOS!=0
# include "TargetConditionals.h"
-# if defined(__IPHONE_4_0) && \
- __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0
-# define PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX 1
+# if TARGET_OS_IPHONE
+# include "Availability.h"
+# ifdef __IPHONE_4_0
+# define PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX 1
+# endif
# endif
#endif