[mdns] Fix for missing HOST_NAME_MAX on FreeBSD

This commit is contained in:
ejurgensen 2016-12-29 19:30:04 +01:00
parent 82470b5168
commit 80fe738583

View File

@ -44,6 +44,12 @@
#include <avahi-client/publish.h>
#include <avahi-client/lookup.h>
// Hack for FreeBSD, don't want to bother with sysconf()
#ifndef HOST_NAME_MAX
# include <limits.h>
# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
#endif
#include "logger.h"
#include "mdns.h"