summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/spec_vnops.c12
-rw-r--r--sys/miscfs/specfs/spec_vnops.c12
2 files changed, 18 insertions, 6 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c
index 62cecd13c8e..e12d69ef68e 100644
--- a/sys/kern/spec_vnops.c
+++ b/sys/kern/spec_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spec_vnops.c,v 1.6 1996/11/23 23:19:52 kstailey Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.7 1996/12/05 16:25:08 kstailey Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
@@ -707,13 +707,19 @@ int
spec_advlock(v)
void *v;
{
-#ifdef UFS
+#ifdef FFS
extern int ufs_advlock __P((void *v));
return (ufs_advlock(v));
#else
+#ifdef NFSCLIENT
+ extern int nfs_advlock __P((void *v));
+
+ return (nfs_advlock(v));
+#else
return (EOPNOTSUPP);
-#endif
+#endif /* NFSCLIENT */
+#endif /* FFS */
}
/*
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c
index 62cecd13c8e..e12d69ef68e 100644
--- a/sys/miscfs/specfs/spec_vnops.c
+++ b/sys/miscfs/specfs/spec_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spec_vnops.c,v 1.6 1996/11/23 23:19:52 kstailey Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.7 1996/12/05 16:25:08 kstailey Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
@@ -707,13 +707,19 @@ int
spec_advlock(v)
void *v;
{
-#ifdef UFS
+#ifdef FFS
extern int ufs_advlock __P((void *v));
return (ufs_advlock(v));
#else
+#ifdef NFSCLIENT
+ extern int nfs_advlock __P((void *v));
+
+ return (nfs_advlock(v));
+#else
return (EOPNOTSUPP);
-#endif
+#endif /* NFSCLIENT */
+#endif /* FFS */
}
/*