mirror of https://github.com/getdnsapi/getdns.git
Merge pull request #339 from banburybill/features/mingw-win10
Check for implementations of sigemptyset, sigfillset and sigaddset an…
This commit is contained in:
commit
d5efa01d06
20
configure.ac
20
configure.ac
|
@ -700,6 +700,8 @@ AC_CHECK_TYPE([sigset_t], [
|
||||||
#endif
|
#endif
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AC_CHECK_FUNCS(sigemptyset sigfillset sigaddset)
|
||||||
|
|
||||||
my_with_libidn=1
|
my_with_libidn=1
|
||||||
AC_ARG_WITH(libidn, AS_HELP_STRING([--with-libidn=pathname],
|
AC_ARG_WITH(libidn, AS_HELP_STRING([--with-libidn=pathname],
|
||||||
[path to libidn (default: search /usr/local ..)]),
|
[path to libidn (default: search /usr/local ..)]),
|
||||||
|
@ -1545,12 +1547,26 @@ static inline int _gldns_custom_vsnprintf(char *str, size_t size, const char *fo
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
|
#if !defined(HAVE_STRPTIME) || !defined(STRPTIME_WORKS)
|
||||||
#define strptime unbound_strptime
|
#define strptime unbound_strptime
|
||||||
struct tm;
|
struct tm;
|
||||||
char *strptime(const char *s, const char *format, struct tm *tm);
|
char *strptime(const char *s, const char *format, struct tm *tm);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(HAVE_SIGEMPTYSET)
|
||||||
|
# define sigemptyset(pset) (*(pset) = 0)
|
||||||
|
#endif
|
||||||
|
#if !defined(HAVE_SIGFILLSET)
|
||||||
|
# define sigfillset(pset) (*(pset) = (_sigset_t)-1)
|
||||||
|
#endif
|
||||||
|
#if !defined(HAVE_SIGADDSET)
|
||||||
|
# define sigaddset(pset, num) (*(pset) |= (1L<<(num)))
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LIBUNBOUND
|
#ifdef HAVE_LIBUNBOUND
|
||||||
# include <unbound.h>
|
# include <unbound.h>
|
||||||
# ifdef HAVE_UNBOUND_EVENT_H
|
# ifdef HAVE_UNBOUND_EVENT_H
|
||||||
|
@ -1568,6 +1584,10 @@ int ub_resolve_event(struct ub_ctx* ctx, const char* name, int rrtype,
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue