X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fnfsc%2Flibnfs-zdr.h;h=5d9fe7c2cbdb387cf48e8e61de33d51927cd53cd;hb=87f81c853ad55ac5fcc23146f016df4bcc0028f3;hp=44f73786c91d97330884ee67fb01f947183eb1ef;hpb=e803ae576042a8c9d6f61e1e1ec58f26bf56aaa2;p=deb_libnfs.git diff --git a/include/nfsc/libnfs-zdr.h b/include/nfsc/libnfs-zdr.h index 44f7378..5d9fe7c 100644 --- a/include/nfsc/libnfs-zdr.h +++ b/include/nfsc/libnfs-zdr.h @@ -26,11 +26,16 @@ * and slightly modified. ************************************************************/ -#include "config.h" - #ifndef _LIBNFS_ZDR_H_ #define _LIBNFS_ZDR_H_ +#ifdef WIN32 +#ifndef CADDR_T_DEFINED +#define CADDR_T_DEFINED +typedef char *caddr_t; +#endif +#endif + #include #include #include @@ -43,6 +48,7 @@ /* we dont need these */ typedef void CLIENT; struct svc_req { + int _dummy_; }; typedef void SVCXPRT; @@ -58,8 +64,12 @@ typedef void SVCXPRT; #define IZDR_PUT_BOOL(...) assert(0) #define IZDR_GET_BOOL(...) (assert(0), 0) +#ifndef TRUE #define TRUE 1 +#endif +#ifndef FALSE #define FALSE 0 +#endif enum zdr_op { ZDR_ENCODE = 0, @@ -88,8 +98,6 @@ typedef uint32_t bool_t; typedef int (*zdrproc_t) (ZDR *, void *,...); -/* XXX find out what we can get rid of */ - #define AUTH_NONE 0 #define AUTH_NULL 0 #define AUTH_UNIX 1 @@ -178,8 +186,8 @@ struct rejected_reply { enum reject_stat stat; union { struct { - u_long low; - u_long high; + uint32_t low; + uint32_t high; } mismatch_info; enum auth_stat stat; } reject_data;