zeroconf/glue: add fallback value for HOST_NAME_MAX
`HOST_NAME_MAX` is not a portable macro; it is undefined on some systems. Closes #402
This commit is contained in:
parent
aba18924ee
commit
f2c926f3b6
|
@ -32,6 +32,12 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
#ifndef HOST_NAME_MAX
|
||||||
|
/* HOST_NAME_MAX is not a portable macro; it is undefined on some
|
||||||
|
systems */
|
||||||
|
#define HOST_NAME_MAX 255
|
||||||
|
#endif
|
||||||
|
|
||||||
static constexpr Domain zeroconf_domain("zeroconf");
|
static constexpr Domain zeroconf_domain("zeroconf");
|
||||||
|
|
||||||
/* The default service name to publish
|
/* The default service name to publish
|
||||||
|
|
Loading…
Reference in New Issue