Skip to content

Commit

Permalink
fixed build on OS X 10.11
Browse files Browse the repository at this point in the history
  • Loading branch information
frekky committed Oct 2, 2017
1 parent 95d20a2 commit 62e3437
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ AS_CASE([${enable_selinux}],
# won't even *compile* there is probably a better solution than just
# turning them off, and build time is minimal.

PKG_CHECK_MODULES(CHECK,[check],
PKG_CHECK_MODULES([CHECK], [check],
AC_MSG_RESULT([enabled: unit testing]),
AC_MSG_RESULT([disabled: unit testing]))

Expand Down Expand Up @@ -207,7 +207,7 @@ AC_TYPE_UINT8_T

AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([alarm dup2 inet_ntoa memset select socket strcasecmp strchr strdup strerror strrchr strstr])
AC_CHECK_FUNCS([alarm dup2 inet_ntoa memset select socket strcasecmp strchr strdup strerror strrchr strstr bzero strtol gettimeofday])

# Epilogue

Expand Down
8 changes: 8 additions & 0 deletions src/dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ typedef enum {
QR_ANSWER = 1
} qr_t;

#ifndef T_A6
#define T_A6 38
#endif

#ifndef T_DNAME
#define T_DNAME 39
#endif

extern int dnsc_use_edns0;

int dns_encode(char *, size_t, struct query *, qr_t, char *, size_t);
Expand Down

0 comments on commit 62e3437

Please sign in to comment.