Permalink
Browse files

Define HOST_NAME_MAX in not defined. Closes issue #89

  • Loading branch information...
1 parent 215e351 commit 2bed37beb73527ba8549b9cac4a8ac010a4fb4b3 @gamelinux committed Mar 19, 2017
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/passivedns.h
View
@@ -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 *********************************************/
/*

0 comments on commit 2bed37b

Please sign in to comment.