[sr-dev] git:ser_core_cvs: sctp: compile fix if -DUSE_SCTP is not defined

Andrei Pelinescu-Onciul andrei at iptel.org
Sun Jun 28 11:33:42 CEST 2009


Module: sip-router
Branch: ser_core_cvs
Commit: 650b96b5764db2196e2afeaf49bd7ff34fea72e8
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=650b96b5764db2196e2afeaf49bd7ff34fea72e8

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Sun Jun 28 09:22:38 2009 +0000

sctp: compile fix if -DUSE_SCTP is not defined

If -DUSE_SCTP is not defined don't try to use sctp library
includes.

---

 sctp_options.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/sctp_options.c b/sctp_options.c
index e14d3ef..b6d7e36 100644
--- a/sctp_options.c
+++ b/sctp_options.c
@@ -27,11 +27,13 @@
 
 #include <string.h>
 #include <sys/types.h>
+#ifdef USE_SCTP
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #include <netinet/sctp.h>
+#endif /* USE_SCTP */
 #include <errno.h>
 
 #include "sctp_options.h"




More information about the sr-dev mailing list