提交 29627360 authored 作者: Stefan Knoblich's avatar Stefan Knoblich

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
上级 85938b21
...@@ -31,6 +31,13 @@ ...@@ -31,6 +31,13 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * 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 "openzap.h"
#include "Q931.h" #include "Q931.h"
#include "Q921.h" #include "Q921.h"
...@@ -53,9 +60,6 @@ ...@@ -53,9 +60,6 @@
#ifdef HAVE_LIBPCAP #ifdef HAVE_LIBPCAP
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
/*Q931ToPcap functions*/ /*Q931ToPcap functions*/
#ifndef WIN32
#include <sys/socket.h>
#endif
#include <pcap.h> #include <pcap.h>
#endif #endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论