X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs-private.h;h=79ac411339668ffcb4e79d3edd00c95ed2b4f54c;hb=c022471e52d3ea679139cdf026dcde179c8de23c;hp=f153e35d9f063ac974bc2f56001e956880e79144;hpb=d7c6e9aaa9df593e951e2f19106dcc71102e74f1;p=deb_libnfs.git diff --git a/include/libnfs-private.h b/include/libnfs-private.h index f153e35..79ac411 100644 --- a/include/libnfs-private.h +++ b/include/libnfs-private.h @@ -18,11 +18,14 @@ #include "config.h" /* HAVE_SOCKADDR_STORAGE ? */ #endif +#ifndef WIN32 #include /* struct sockaddr_storage */ +#endif #include "libnfs-zdr.h" -#ifndef HAVE_SOCKADDR_STORAGE + +#if !defined(HAVE_SOCKADDR_STORAGE) && !defined(WIN32) /* * RFC 2553: protocol-independent placeholder for socket addresses */ @@ -33,7 +36,7 @@ _SS_PAD1SIZE - _SS_ALIGNSIZE) struct sockaddr_storage { -#ifdef HAVE_SA_LEN +#ifdef HAVE_SOCKADDR_LEN unsigned char ss_len; /* address length */ unsigned char ss_family; /* address family */ #else