From ee89a1eb55b26908e65a61f87a3fcab34d49fbe8 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 12 Feb 2008 18:38:26 +0000 Subject: [PATCH] ifdef for sctp git-svn-id: http://svn.openzap.org/svn/openzap/trunk@393 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/include/ss7_boost_client.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/openzap/src/include/ss7_boost_client.h b/libs/openzap/src/include/ss7_boost_client.h index 33a9e39a62..079893c7de 100644 --- a/libs/openzap/src/include/ss7_boost_client.h +++ b/libs/openzap/src/include/ss7_boost_client.h @@ -44,7 +44,9 @@ #include #include #include +#ifdef SS7BC_USE_SCTP #include +#endif #include #include #include @@ -109,8 +111,10 @@ typedef struct ss7bc_connection ss7bc_connection_t; /* disable nagle's algorythm */ static inline void sctp_no_nagle(int socket) { +#ifdef SS7BC_USE_SCTP int flag = 1; setsockopt(socket, IPPROTO_SCTP, SCTP_NODELAY, (char *) &flag, sizeof(int)); +#endif } int ss7bc_connection_close(ss7bc_connection_t *mcon);