Commit f2c926f3 authored by Max Kellermann's avatar Max Kellermann

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
parent aba18924
...@@ -32,6 +32,12 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment