From ce3b76a1026f131fd23e5e8dede1ea474390c159 Mon Sep 17 00:00:00 2001 From: Pablo Rincon Date: Mon, 7 Mar 2011 14:17:52 +0100 Subject: [PATCH] Fix compilation on Mac OS X (it was missing IPPROTO_SCTP definition) --- src/decode.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/decode.h b/src/decode.h index 525065bb03..4b7592002e 100644 --- a/src/decode.h +++ b/src/decode.h @@ -771,6 +771,14 @@ void AddressDebugPrint(Address *); #define IPPROTO_DCCP 33 #endif +/* older libcs don't contain a def for IPPROTO_SCTP + * inside of + * if it isn't defined let's define it here. + */ +#ifndef IPPROTO_SCTP +#define IPPROTO_SCTP 132 +#endif + /* pcap provides this, but we don't want to depend on libpcap */ #ifndef DLT_EN10MB #define DLT_EN10MB 1