1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Fix build on 4.x

Reported by:	pointyhat via kris
This commit is contained in:
Clement Laforet 2004-12-04 11:22:02 +00:00
parent 1664af539b
commit b30be827cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123094

View File

@ -0,0 +1,14 @@
--- nfs.c.orig Sat Dec 4 12:17:53 2004
+++ nfs.c Sat Dec 4 12:18:20 2004
@@ -45,9 +45,10 @@
* otherwise zero result structure and return with error status
*/
#define PREP(p,f) do { \
+ unfs3_fh_t *fh; \
setegid(0); \
seteuid(0); \
- unfs3_fh_t *fh = (void *)f.data.data_val; \
+ fh = (void *)f.data.data_val; \
p = fh_decomp(f); \
if (exports_options(p, rqstp, NULL, NULL) == -1) { \
memset(&result, 0, sizeof(result)); \