Fixed ticket #216: Build error when PJ_HAS_TCP is set to zero (thanks ChenHuan)

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1159 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip-apps/src/samples/sipstateless.c b/pjsip-apps/src/samples/sipstateless.c
index 832c021..53b1fc7 100644
--- a/pjsip-apps/src/samples/sipstateless.c
+++ b/pjsip-apps/src/samples/sipstateless.c
@@ -36,7 +36,7 @@
 #define HAS_UDP_TRANSPORT
 
 /* If this macro is set, TCP transport will be initialized at port 5060 */
-#define HAS_TCP_TRANSPORT
+#define HAS_TCP_TRANSPORT   (1 && PJ_HAS_TCP)
 
 /* Log identification */
 #define THIS_FILE	"sipstateless.c"
@@ -141,7 +141,7 @@
     }
 #endif
 
-#ifdef HAS_TCP_TRANSPORT
+#if HAS_TCP_TRANSPORT
     /* 
      * Add UDP transport, with hard-coded port 
      */