diff --git a/libs/openzap/src/ozmod/ozmod_isdn/ozmod_isdn.c b/libs/openzap/src/ozmod/ozmod_isdn/ozmod_isdn.c index 68e727ee3d..e4e9a1511f 100644 --- a/libs/openzap/src/ozmod/ozmod_isdn/ozmod_isdn.c +++ b/libs/openzap/src/ozmod/ozmod_isdn/ozmod_isdn.c @@ -31,6 +31,13 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/** + * Workaround for missing u_int / u_short types on solaris + */ +#if defined(HAVE_LIBPCAP) && defined(__SunOS) +#define __EXTENSIONS__ +#endif + #include "openzap.h" #include "Q931.h" #include "Q921.h" @@ -53,9 +60,6 @@ #ifdef HAVE_LIBPCAP /*-------------------------------------------------------------------------*/ /*Q931ToPcap functions*/ -#ifndef WIN32 -#include -#endif #include #endif