Add an async helper function to connect an rpc context to a program/version
[deb_libnfs.git] / include / libnfs-private.h
index f995a7ef94a5466e1024b157563763fcc1f6e4ca..328d79dc62720d45f2205bb61f9d1c3081fa0b30 100644 (file)
 #include "config.h"  /* HAVE_SOCKADDR_STORAGE ? */
 #endif
 
+#ifndef WIN32
 #include <sys/socket.h>  /* 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
  */
@@ -65,7 +68,7 @@ struct rpc_context {
        void *connect_data;
 
        struct AUTH *auth;
-       unsigned long xid;
+       uint32_t xid;
 
        /* buffer used for encoding RPC PDU */
        char *encodebuf;
@@ -95,7 +98,7 @@ struct rpc_context {
 struct rpc_pdu {
        struct rpc_pdu *next;
 
-       unsigned long xid;
+       uint32_t xid;
        ZDR zdr;
 
        uint32_t written;