#define mem_free(ptr, bsize) free(ptr)
#endif
-#if defined(AFS_AMD64_LINUX24_ENV) || (defined(KERNEL) && !defined(UKERNEL))
+#if defined(AFS_AMD64_LINUX24_ENV) || defined(AFS_DARWIN_ENV)
+#define xdr_alloc afs_xdr_alloc
+#define xdr_free afs_xdr_free
#define xdr_void afs_xdr_void
#define xdr_int afs_xdr_int
#define xdr_u_int afs_xdr_u_int
#define xdr_vector afs_xdr_vector
#define xdr_int64 afs_xdr_int64
#define xdr_uint64 afs_xdr_uint64
+#define xdr_pointer afs_xdr_pointer
#endif
#ifdef KERNEL
#define osi_free afs_osi_Free
/* keep here for now, 64 bit issues */
+#ifndef AFS_OBSD44_ENV
extern void *afs_osi_Alloc(size_t x);
#ifndef afs_osi_Alloc_NoSleep
extern void *afs_osi_Alloc_NoSleep(size_t x);
#endif
extern void afs_osi_Free(void *x, size_t asize);
+#endif
#endif
#ifndef major /* ouch! */
#if 0
typedef bool_t(*xdrproc_t) ();
#else
+#ifdef AFS_I386_LINUX26_ENV
+typedef bool_t(*xdrproc_t) (void *, caddr_t, u_int);
+#else
typedef bool_t(*xdrproc_t) (void *, ...);
#endif
+#endif
/*
#define IXDR_PUT_U_SHORT(buf, v) IXDR_PUT_INT32((buf), ((afs_int32)(v)))
#include "xdr_prototypes.h"
-
#endif /* __XDR_INCLUDE__ */