Final workaround for the ozmod_isdn libpcap build failure on solaris.
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
This commit is contained in:
parent
85938b212e
commit
29627360b5
|
@ -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 <sys/socket.h>
|
||||
#endif
|
||||
#include <pcap.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue