Skip to content

Commit

Permalink
fix building on osx
Browse files Browse the repository at this point in the history
    On Linux, they use 'BIND_4_COMPAT' and #include <arpa/nameser_compat.h> in <arpa/nameser.h>
    On OSX, if 'BIND_8_COMPAT' is #defined, <arpa/nameser_compat.h> is #included in <arpa/nameser.h>
  • Loading branch information
zyxar committed Jul 6, 2013
1 parent 1aa1097 commit 2a08115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asn.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdlib.h>
#include <sys/types.h>

#ifndef __APPLE__
#ifdef __APPLE__
#define BIND_8_COMPAT
#endif
#include <arpa/nameser.h>
Expand Down

0 comments on commit 2a08115

Please sign in to comment.