-/* taken from the quota-1.55 used on linux. here's the bsd copyright:
+/*
+ * $Id: rquota_xdr.c,v 1.4 2003-02-17 01:51:08 srittau Exp $
+ *
+ * taken from the quota-1.55 used on linux. here's the bsd copyright:
*
* Copyright (c) 1980, 1990 Regents of the University of California. All
* rights reserved.
* The University of Melbourne.
*/
-#include <stdio.h> /* to get __GNU_LIBRARY__ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
-static int _xdr_rquota_dummy;
+#include <stdio.h> /* to get __GNU_LIBRARY__ */
/* list of machines that don't have these functions:
solaris
linux libc5
*/
-#if defined(NEED_RQUOTA) || (defined(sun) && defined(__svr4__)) || \
-(defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ < 6)
+#if defined(NEED_RQUOTA) || defined(SOLARIS) || (defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ < 6)
#include <rpc/rpc.h>
#include <rpcsvc/rquota.h>
+#ifndef u_int
+#define u_int unsigned
+#endif
+
bool_t
xdr_getquota_args(xdrs, objp)
XDR *xdrs;