FreeBSD Bugzilla – Attachment 157540 Details for
Bug 200356
dns/mDNSResponder_nss: Build and install nss_mdns
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for nss_mdns.c
patch-mDNSPosix__nss_mdns.c (text/plain), 817 bytes, created by
sef
on 2015-06-08 18:40:59 UTC
(
hide
)
Description:
Patch for nss_mdns.c
Filename:
MIME Type:
Creator:
sef
Created:
2015-06-08 18:40:59 UTC
Size:
817 bytes
patch
obsolete
>--- ./mDNSPosix/nss_mdns.c.orig 2012-04-15 08:07:19.000000000 +0200 >+++ ./mDNSPosix/nss_mdns.c 2013-11-05 11:00:14.000000000 +0100 >@@ -379,7 +379,18 @@ > #define ENTNAME hostent > #define DATABASE "hosts" > >-#include <nss.h> >+#if defined __FreeBSD__ >+# include <nsswitch.h> >+enum nss_status { >+ NSS_STATUS_SUCCESS = NS_SUCCESS, >+ NSS_STATUS_NOTFOUND = NS_NOTFOUND, >+ NSS_STATUS_UNAVAIL = NS_UNAVAIL, >+ NSS_STATUS_TRYAGAIN = NS_TRYAGAIN, >+ NSS_STATUS_RETURN = NS_RETURN >+}; >+#elif defined __Linux__ >+# include <nss.h> >+#endif > // For nss_status > #include <netdb.h> > // For hostent >@@ -1684,7 +1695,7 @@ > //---------- > // Types and Constants > >-const char * k_conf_file = "/etc/nss_mdns.conf"; >+const char * k_conf_file = PREFIX"/etc/nss_mdns.conf"; > #define CONF_LINE_SIZE 1024 > > const char k_comment_char = '#';
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200356
:
156993
|
157538
| 157540 |
157542