nfs4: update the makefile to do the c++ tweaks automatically
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>master
parent
d1494d41de
commit
af90dbfbcf
|
@ -28,7 +28,8 @@ compile_rpc:
|
|||
-e "s/#define NFS3_COOKIEVERFSIZE 8/#define NFS3_COOKIEVERFSIZE 8\n\n/g" \
|
||||
-e "s/ CLIENT / void /g" \
|
||||
-e "s/SVCXPRT /void /g" \
|
||||
-e "s/bool_t/uint32_t/g" >> libnfs-raw-nfs4.h
|
||||
-e "s/bool_t/uint32_t/g" | head --lines=-5 >>libnfs-raw-nfs4.h
|
||||
cat libnfs-raw-nfs4.h.extra >>libnfs-raw-nfs4.h
|
||||
cat nfs4.x | head -16 >libnfs-raw-nfs4.c
|
||||
rpcgen -c nfs4.x | sed \
|
||||
-e "s/#include \".*nfs4.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nfs4.h\"/" \
|
||||
|
|
|
@ -2798,4 +2798,3 @@ EXTERN void nfs4_acl_free(fattr4_acl *nfs4acl);
|
|||
#endif
|
||||
|
||||
#endif /* !_NFS4_H_RPCGEN */
|
||||
|
||||
|
|
|
@ -41,3 +41,9 @@ EXTERN int nfs4_getacl(struct nfs_context *nfs, struct nfsfh *nfsfh,
|
|||
fattr4_acl *nfs4acl);
|
||||
|
||||
EXTERN void nfs4_acl_free(fattr4_acl *nfs4acl);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* !_NFS4_H_RPCGEN */
|
||||
|
|
Loading…
Reference in New Issue