Commit 1860fc21 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add support for QNX.

parent c30a0d81
......@@ -96,6 +96,7 @@ fi
ANTLR_LIBS="$ANTLR_LIBS -lantlr3c"
dnl check antlr headers
use_libresolv=no
CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="$ANTLR_CFLAGS $CPPFLAGS"
AC_CHECK_HEADERS([antlr3.h], [found_antlr3=yes])
......@@ -104,10 +105,19 @@ AC_CHECK_DECL( [antlr3StringStreamNew]
,[foo=bar]
,[#include <antlr3.h>])
AC_CHECK_DECL( [res_ndestroy]
,[AC_DEFINE(HAVE_RESINIT,1,[Defined when res_ninit api is available]) LIBS="$LIBS -lresolv"]
,[AC_DEFINE(HAVE_RESINIT,1,[Defined when res_ninit api is available]) use_libresolv=yes]
,[foo=bar]
,[#include <resolv.h>])
case "$target_os" in
*nto-qnx*)
# libresolv is not available on QNX
;;
*)
if test "$use_libresolv" == "yes" ; then
LIBS="$LIBS -lresolv"
fi
;;
esac
CPPFLAGS=$CPPFLAGS_save
if test "$found_antlr3" != "yes" ; then
......
......@@ -50,15 +50,15 @@
#define AI_NUMERICSERV 0
#endif
#ifdef WIN32
/*Mingw32 does not define AI_V4MAPPED, however it is supported starting from Windows Vista.*/
#endif
#if defined(WIN32) || defined(__QNX__)
/* Mingw32 does not define AI_V4MAPPED, however it is supported starting from Windows Vista. QNX also does not define AI_V4MAPPED. */
# ifndef AI_V4MAPPED
# define AI_V4MAPPED 0x00000800
# endif
#endif
#endif
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__)
#ifdef BELLESIP_INTERNAL_EXPORTS
#define BELLESIP_INTERNAL_EXPORT __declspec(dllexport)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment