mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-08 21:24:57 -05:00
[mdns] Fix for missing HOST_NAME_MAX on FreeBSD
This commit is contained in:
@@ -44,6 +44,12 @@
|
|||||||
#include <avahi-client/publish.h>
|
#include <avahi-client/publish.h>
|
||||||
#include <avahi-client/lookup.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 "logger.h"
|
||||||
#include "mdns.h"
|
#include "mdns.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user