]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
ifdef for sctp
authorMichael Jerris <mike@jerris.com>
Tue, 12 Feb 2008 18:38:26 +0000 (18:38 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 12 Feb 2008 18:38:26 +0000 (18:38 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@393 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/include/ss7_boost_client.h

index 33a9e39a62ad596a6c251d2058788b48022b17cb..079893c7de5fdc905e9729104017d66c54b35c81 100644 (file)
@@ -44,7 +44,9 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#ifdef SS7BC_USE_SCTP
 #include <netinet/sctp.h>
+#endif
 #include <arpa/inet.h>
 #include <stdarg.h>
 #include <netdb.h>
@@ -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);