mirror of https://github.com/getdnsapi/getdns.git
Fix some warnings on OSX
This commit is contained in:
parent
bd01b0b83e
commit
75d163427c
|
@ -107,7 +107,7 @@ getdns_mini_event_run_once(getdns_eventloop *loop, int blocking)
|
||||||
static getdns_return_t
|
static getdns_return_t
|
||||||
getdns_mini_event_clear(getdns_eventloop *loop, getdns_eventloop_event *el_ev)
|
getdns_mini_event_clear(getdns_eventloop *loop, getdns_eventloop_event *el_ev)
|
||||||
{
|
{
|
||||||
getdns_return_t r;
|
getdns_return_t r = GETDNS_RETURN_GOOD;
|
||||||
getdns_mini_event *ext = (getdns_mini_event *)loop;
|
getdns_mini_event *ext = (getdns_mini_event *)loop;
|
||||||
|
|
||||||
assert(el_ev->ev);
|
assert(el_ev->ev);
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "gldns/parseutil.h"
|
#include "gldns/parseutil.h"
|
||||||
|
#include <strings.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "gldns/rrdef.h"
|
#include "gldns/rrdef.h"
|
||||||
#include "gldns/parseutil.h"
|
#include "gldns/parseutil.h"
|
||||||
|
#include <strings.h>
|
||||||
|
|
||||||
/* classes */
|
/* classes */
|
||||||
static gldns_lookup_table gldns_rr_classes_data[] = {
|
static gldns_lookup_table gldns_rr_classes_data[] = {
|
||||||
|
|
|
@ -54,6 +54,8 @@
|
||||||
|
|
||||||
#if defined(USE_MINI_EVENT) && !defined(USE_WINSOCK)
|
#if defined(USE_MINI_EVENT) && !defined(USE_WINSOCK)
|
||||||
|
|
||||||
|
#include <sys/select.h>
|
||||||
|
|
||||||
#ifndef HAVE_EVENT_BASE_FREE
|
#ifndef HAVE_EVENT_BASE_FREE
|
||||||
#define HAVE_EVENT_BASE_FREE
|
#define HAVE_EVENT_BASE_FREE
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue