From 3e94c51b0ade0767cf807dad1052e2e927ecc535 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 24 Oct 1996 19:26:31 +0000 Subject: Mon Oct 21 21:56:33 1996 Thomas Bushnell, n/BSG * netfs.h: Add extern inline protection. * netfs.c: New file. * Makefile (OTHERSRCS): Add netfs.c. --- libnetfs/netfs.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libnetfs/netfs.h') diff --git a/libnetfs/netfs.h b/libnetfs/netfs.h index 19ea4688..cad8e042 100644 --- a/libnetfs/netfs.h +++ b/libnetfs/netfs.h @@ -24,6 +24,10 @@ #include #include +#ifndef NETFS_EI +#define NETFS_EI extern inline +#endif + /* This library supports client-side network file system implementations. It is analogous to the diskfs library provided for disk-based filesystems. */ @@ -325,7 +329,7 @@ extern struct node *netfs_root_node; extern mach_port_t netfs_fsys_identity; extern auth_t netfs_auth_server_port; -extern inline void +NETFS_EI void netfs_nref (struct node *np) { spin_lock (&netfs_node_refcnt_lock); @@ -333,7 +337,7 @@ netfs_nref (struct node *np) spin_unlock (&netfs_node_refcnt_lock); } -extern inline void +NETFS_EI void netfs_nrele (struct node *np) { spin_lock (&netfs_node_refcnt_lock); @@ -348,7 +352,7 @@ netfs_nrele (struct node *np) spin_unlock (&netfs_node_refcnt_lock); } -extern inline void +NETFS_EI void netfs_nput (struct node *np) { spin_lock (&netfs_node_refcnt_lock); -- cgit v1.2.3