null+****@clear*****
null+****@clear*****
2010年 12月 30日 (木) 18:15:12 JST
Kouhei Sutou 2010-12-30 09:15:12 +0000 (Thu, 30 Dec 2010)
New Revision: af7072eb4e89c7b7ad16dd730657f158e972c0be
Log:
define SOL_TCP as IPPROTO_TCP for *BSD.
Reported by OBATA Akio. Thanks!!!
Modified files:
lib/com.c
Modified: lib/com.c (+8 -0)
===================================================================
--- lib/com.c 2010-12-29 10:36:16 +0000 (c81a4b9)
+++ lib/com.c 2010-12-30 09:15:12 +0000 (1189b94)
@@ -42,6 +42,14 @@
#define PF_INET AF_INET
#endif /* PF_INET */
+#ifndef SOL_TCP
+# ifdef IPPROTO_TCP
+# define SOL_TCP IPPROTO_TCP
+# else
+# define SOL_TCP 6
+# endif /* IPPROTO_TCP */
+#endif /* SOL_TCP */
+
#ifndef USE_MSG_MORE
#define MSG_MORE 0
#endif /* USE_MSG_MORE */