repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We have to include config.h when testing for precense of sockaddr sa_len
[deb_libnfs.git]
/
lib
/
libnfs-sync.c
diff --git
a/lib/libnfs-sync.c
b/lib/libnfs-sync.c
index 82c09f38e36bb7f6761b33b52b78c98cbbe861c8..faf85458a02be7e03335ff3efd297e11d5749290 100644
(file)
--- a/
lib/libnfs-sync.c
+++ b/
lib/libnfs-sync.c
@@
-18,6
+18,7
@@
* High level api to nfs filesystems
*/
* High level api to nfs filesystems
*/
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-1245,7
+1246,7
@@
struct nfs_server_list *nfs_find_local_servers(void)
char bcdd[16];
ifr = (struct ifreq *)ptr;
char bcdd[16];
ifr = (struct ifreq *)ptr;
-#if HAVE_SOCKADDR_LEN
+#if
def
HAVE_SOCKADDR_LEN
if (ifr->ifr_addr.sa_len > sizeof(struct sockaddr)) {
ptr += sizeof(ifr->ifr_name) + ifr->ifr_addr.sa_len;
} else {
if (ifr->ifr_addr.sa_len > sizeof(struct sockaddr)) {
ptr += sizeof(ifr->ifr_name) + ifr->ifr_addr.sa_len;
} else {