Author: mturk
Date: Sat Jul  8 00:17:48 2006
New Revision: 420069

URL: http://svn.apache.org/viewvc?rev=420069&view=rev
Log:
Move common macros to the include file.

Modified:
    tomcat/connectors/trunk/jni/native/include/tcn.h

Modified: tomcat/connectors/trunk/jni/native/include/tcn.h
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/include/tcn.h?rev=420069&r1=420068&r2=420069&view=diff
==============================================================================
--- tomcat/connectors/trunk/jni/native/include/tcn.h (original)
+++ tomcat/connectors/trunk/jni/native/include/tcn.h Sat Jul  8 00:17:48 2006
@@ -259,4 +259,19 @@
 
 #endif
 
+#if  !APR_HAVE_IPV6
+#define APR_INET6 APR_INET
+#endif
+
+#define GET_S_FAMILY(T, F)           \
+    if (F == 0) T = APR_UNSPEC;      \
+    else if (F == 1) T = APR_INET;   \
+    else if (F == 2) T = APR_INET6;  \
+    else T = F
+
+#define GET_S_TYPE(T, F)             \
+    if (F == 0) T = SOCK_STREAM;     \
+    else if (F == 1) T = SOCK_DGRAM; \
+    else T = F
+
 #endif /* TCN_H */



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to