# HG changeset patch # User Mikael Hallendal # Date 1224978971 -7200 # Node ID 104d37c1b24ac4808ab72b8e66901d889c0ed90b # Parent 99a387fdb1bb325bd300ccb1c66df5acd89fc150 Make the new libasyncns compile on mac os x diff -r 99a387fdb1bb -r 104d37c1b24a loudmouth/asyncns.c --- a/loudmouth/asyncns.c Sun Oct 26 01:52:23 2008 +0200 +++ b/loudmouth/asyncns.c Sun Oct 26 01:56:11 2008 +0200 @@ -41,6 +41,12 @@ #include #include +/* Needed on Mac OS X where it is not included from arpa/nameser.h */ +#if HAVE_ARPA_NAMESER_COMPAT_H +#include +#endif + + #ifdef HAVE_SYS_PRCTL_H #include #endif @@ -197,7 +203,6 @@ static int close_allv(const int except_fds[]) { struct rlimit rl; int fd; - int saved_errno; #ifdef __linux__ @@ -289,7 +294,7 @@ int sig; assert(except); - for (sig = 1; sig < _NSIG; sig++) { + for (sig = 1; sig < NSIG; sig++) { int reset = 1; switch (sig) {