changeset 7957:22244e559776 HEAD

rquota_xdr compilation fixes for AIX (hopefully won't break other OSes).
author Timo Sirainen <tss@iki.fi>
date Fri, 27 Jun 2008 08:18:41 +0300
parents 439636cce455
children adb7d13d7d97
files src/plugins/quota/Makefile.am
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/quota/Makefile.am	Fri Jun 27 08:10:54 2008 +0300
+++ b/src/plugins/quota/Makefile.am	Fri Jun 27 08:18:41 2008 +0300
@@ -35,8 +35,11 @@
 RQUOTA_XDR = rquota_xdr.c
 RQUOTA_X = /usr/include/rpcsvc/rquota.x
 rquota_xdr.c: Makefile $(RQUOTA_X)
-	(echo '#include "lib.h"'; $(RPCGEN) -c $(RQUOTA_X) | \
+	(echo '#include "lib.h"'; \
+	 echo '#include <rpc/rpc.h>'; \
+	 $(RPCGEN) -c $(RQUOTA_X) | \
 	  sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \
+	    -e 's,/usr/include/rpcsvc/rquota.h,rquota.h,' \
 	    -e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' ) > rquota_xdr.c
 
 rquota.h: Makefile $(RQUOTA_X)