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);