Skip to content

Commit

Permalink
Define HOST_NAME_MAX in not defined. Closes issue #89
Browse files Browse the repository at this point in the history
  • Loading branch information
gamelinux committed Mar 19, 2017
1 parent 215e351 commit 2bed37b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/passivedns.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@
#define s6_addr32 __u6_addr.__u6_addr32
#endif /* __FreeBSD__ or __APPLE__ */

#ifndef HOST_NAME_MAX
#if defined(__APPLE__)
#define HOST_NAME_MAX 255
#else
#define HOST_NAME_MAX 64
#endif /* __APPLE__ */
#endif /* HOST_NAME_MAX */

/* D A T A S T R U C T U R E S *********************************************/

/*
Expand Down

0 comments on commit 2bed37b

Please sign in to comment.