From: niklas Date: Wed, 18 Dec 1996 18:30:58 +0000 (+0000) Subject: Conditionalize GCC and ANSI/ISO C dependencies X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=654855512be09fd9e30f710aaada0226c6977521;p=openbsd Conditionalize GCC and ANSI/ISO C dependencies --- diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 27e475c0ebc..252da8bdbf1 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_subs.c,v 1.14 1996/12/17 03:46:38 dm Exp $ */ +/* $OpenBSD: nfs_subs.c,v 1.15 1996/12/18 18:30:58 niklas Exp $ */ /* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */ /* @@ -80,6 +80,14 @@ #include #endif +#ifdef __GNUC__ +#define INLINE __inline +#else +#define INLINE +#endif + +int nfs_attrtimeo __P((struct nfsnode *np)); + /* * Data items converted to xdr at startup, since they are constant * This is kinda hokey, but may save a little time doing byte swaps @@ -1321,8 +1329,9 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper) return (0); } -inline int -nfs_attrtimeo (struct nfsnode *np) +INLINE int +nfs_attrtimeo (np) + struct nfsnode *np; { struct vnode *vp = np->n_vnode; struct nfsmount *nmp = VFSTONFS(vp->v_mount);