Bug 810716 - Detect res_ninit() on DragonFly and FreeBSD. r=ted

This commit is contained in:
Jan Beich 2013-11-19 15:42:55 +01:00
Родитель ed0a7770ab
Коммит 4d640a0d2f
3 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -3105,6 +3105,9 @@ AC_CACHE_CHECK(
#ifdef linux
#define _BSD_SOURCE 1
#endif
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
],
[int foo = res_ninit(&_res);],

Просмотреть файл

@ -40,6 +40,9 @@ typedef KLStatus (*KLCacheHasValidTickets_type)(
#endif
#if defined(HAVE_RES_NINIT)
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
#endif

Просмотреть файл

@ -2554,6 +2554,9 @@ AC_CACHE_CHECK(
#ifdef linux
#define _BSD_SOURCE 1
#endif
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
],
[int foo = res_ninit(&_res);],