Explorar o código

sctp: compile fix if -DUSE_SCTP is not defined

If -DUSE_SCTP is not defined don't try to use sctp library
includes.
Andrei Pelinescu-Onciul %!s(int64=16) %!d(string=hai) anos
pai
achega
650b96b576
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      sctp_options.c

+ 2 - 0
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"