]>
Commit | Line | Data |
---|---|---|
61166a61 MT |
1 | diff -up nfs-utils-1.2.3/utils/statd/sm-notify.c.orig nfs-utils-1.2.3/utils/statd/sm-notify.c |
2 | --- nfs-utils-1.2.3/utils/statd/sm-notify.c.orig 2010-09-28 08:24:16.000000000 -0400 | |
3 | +++ nfs-utils-1.2.3/utils/statd/sm-notify.c 2010-10-15 16:44:43.487119601 -0400 | |
4 | @@ -28,6 +28,9 @@ | |
5 | #include <netdb.h> | |
6 | #include <errno.h> | |
7 | #include <grp.h> | |
8 | +#include <netinet/in.h> | |
9 | +#include <arpa/nameser.h> | |
10 | +#include <resolv.h> | |
11 | ||
12 | #include "sockaddr.h" | |
13 | #include "xlog.h" | |
14 | @@ -84,6 +87,7 @@ smn_lookup(const char *name) | |
15 | }; | |
16 | int error; | |
17 | ||
18 | + res_init(); | |
19 | error = getaddrinfo(name, NULL, &hint, &ai); | |
20 | if (error != 0) { | |
21 | xlog(D_GENERAL, "getaddrinfo(3): %s", gai_strerror(error)); |