--- src/common/4s-mdns.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/common/4s-mdns.c b/src/common/4s-mdns.c index abc0971..dc7e75d 100644 --- a/src/common/4s-mdns.c +++ b/src/common/4s-mdns.c @@ -21,11 +21,16 @@ #include "4s-internals.h" #include "error.h" +#include <limits.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <glib.h> +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX +#endif + #define SERVICE_TYPE "_4store._tcp" #if defined(USE_AVAHI) @@ -332,16 +337,11 @@ void fsp_mdns_setup_backend (uint16_t port, const char *kb_name, #include <errno.h> #include <dns_sd.h> -#include <limits.h> #include <net/if.h> #include <sys/select.h> #include "error.h" -#ifndef HOST_NAME_MAX -#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX -#endif - static int found = 0; /* Use apple-style DNS-SD library */ -- 1.7.9.1 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

