Skip to content

Commit

Permalink
Bug fix---fix compilation error on Mac OS-X
Browse files Browse the repository at this point in the history
The Mac compiler doesn't define __unix__, so we need to check __APPLE__ as
well.
  • Loading branch information
spc476 committed Aug 31, 2023
1 parent 2442559 commit 62d9711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# include <wspiapi.h>
# endif
typedef uint32_t in_addr_t;
#elif defined(__unix__)
#elif defined(__unix__) || defined (__APPLE__)
# include <arpa/inet.h>
#else
// No platform implementation of in6_addr so we'll provide a simple one
Expand Down

0 comments on commit 62d9711

Please sign in to comment.