Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 238 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
172 holmgren 1
Description: Include the necessary header file declaring htons() in Protocols.DNS_SD.
2
 
3
--- a/src/modules/_Protocols_DNS_SD/configure.in
4
+++ b/src/modules/_Protocols_DNS_SD/configure.in
198 holmgren 5
@@ -11,7 +11,7 @@ if test x$with_dnssd = xyes ; then
172 holmgren 6
 
7
   PIKE_FEATURE(DNS-SD,[no (dns_sd.h or howl.h not found)])
8
 
9
-  AC_CHECK_HEADERS(dns_sd.h howl.h)
10
+  AC_CHECK_HEADERS(dns_sd.h howl.h netinet/in.h arpa/inet.h)
11
 
12
   if test x$ac_cv_header_dns_sd_h = xyes; then
13
     PIKE_FEATURE(DNS-SD,[no (libdns_sd not found)])
14
--- a/src/modules/_Protocols_DNS_SD/sd.c
15
+++ b/src/modules/_Protocols_DNS_SD/sd.c
198 holmgren 16
@@ -33,6 +33,12 @@
172 holmgren 17
 
18
 #include <signal.h>
19
 
20
+#ifdef HAVE_NETINET_IN_H
21
+#include <netinet/in.h>
22
+#endif /* HAVE_NETINET_IN_H */
23
+#ifdef HAVE_ARPA_INET_H
24
+#include <arpa/inet.h>
25
+#endif /* HAVE_ARPA_INET_H */
26
 
27
 #ifdef THIS
28
 #undef THIS
29
--- a/src/modules/_Protocols_DNS_SD/config.h.in
30
+++ b/src/modules/_Protocols_DNS_SD/config.h.in
198 holmgren 31
@@ -9,6 +9,9 @@
172 holmgren 32
 #define PROTOCOLS_DNS_SD_H
33
 
34
 
35
+/* Define to 1 if you have the <arpa/inet.h> header file. */
36
+#undef HAVE_ARPA_INET_H
37
+
38
 /* Define to 1 if you have the <dns_sd.h> header file. */
39
 #undef HAVE_DNS_SD_H
40
 
198 holmgren 41
@@ -24,6 +27,9 @@
172 holmgren 42
 /* Define to 1 if you have the <memory.h> header file. */
43
 #undef HAVE_MEMORY_H
44
 
45
+/* Define to 1 if you have the <netinet/in.h> header file. */
46
+#undef HAVE_NETINET_IN_H
47
+
48
 /* Define to 1 if you have the <stdint.h> header file. */
49
 #undef HAVE_STDINT_H
50