Define __EXTENSIONS__ before including openzap.h to get the required
u_int/u_short typedefs that would be disabled otherwise, due to either
_XOPEN_SOURCE or _POSIX_C_SOURCE being set.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@949
a93c3328-9c30-0410-af19-
c9cd2b2d52af
* 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"
#ifdef HAVE_LIBPCAP
/*-------------------------------------------------------------------------*/
/*Q931ToPcap functions*/
-#ifndef WIN32
-#include <sys/socket.h>
-#endif
#include <pcap.h>
#endif