From 6dd5de8c21284530a7d9716b979812446cc4eb79 Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Wed, 21 Mar 2018 23:56:05 +0100 Subject: [PATCH] hplip: misc missing #includes and definitions --- protocol/discovery/mdns.c | 1 + protocol/discovery/mdns.h | 1 + scan/sane/hpaio.c | 1 + scan/sane/http.c | 1 + 4 files changed, 4 insertions(+) Index: b/protocol/discovery/mdns.c =================================================================== --- a/protocol/discovery/mdns.c +++ b/protocol/discovery/mdns.c @@ -37,6 +37,7 @@ #include #include "mdns.h" #include +#include /* Convert "www.google.com" to "3www6google3com". */ static int mdns_convert_name_to_dns(const char *name, int name_size, char *dns_name) Index: b/protocol/discovery/mdns.h =================================================================== --- a/protocol/discovery/mdns.h +++ b/protocol/discovery/mdns.h @@ -100,5 +100,6 @@ static void mdns_parse_respponse(unsign static void mdns_rr_cleanup(DNS_RECORD *rr); static DNS_RECORD *mdns_read_responses(int udp_socket, int mode); static unsigned char* mdns_readMDL(unsigned char *p, unsigned char *normalized_mdl, int len); +int mdns_probe_nw_scanners(char* uris_buf, int buf_size, int *count); #endif // _DISCOVERY_MDNS_H Index: b/scan/sane/hpaio.c =================================================================== --- a/scan/sane/hpaio.c +++ b/scan/sane/hpaio.c @@ -46,6 +46,7 @@ #include "sclpml.h" #include "escl.h" #include "io.h" +#include "mdns.h" #define DEBUG_DECLARE_ONLY #include "sanei_debug.h" Index: b/scan/sane/http.c =================================================================== --- a/scan/sane/http.c +++ b/scan/sane/http.c @@ -33,6 +33,7 @@ #include #include +#include #include #include #include