Index: src/kerberosIV/lib/kafs/afssys_openbsd.c
===================================================================
RCS file: /cvs/src/kerberosIV/lib/kafs/afssys_openbsd.c,v
retrieving revision 1.1
diff -u -r1.1 afssys_openbsd.c
--- src/kerberosIV/lib/kafs/afssys_openbsd.c	2000/03/02 10:17:28	1.1
+++ src/kerberosIV/lib/kafs/afssys_openbsd.c	2002/03/09 19:07:26
@@ -43,14 +43,23 @@
 
 int _kafs_debug;
 
+#ifdef OPENAFS
+#define AFS_SYSCALL	210
+#endif /* OPENAFS */
+
 int
 k_pioctl(char *a_path,
 	 int o_opcode,
 	 struct ViceIoctl *a_paramsP,
 	 int a_followSymlinks)
 {
+#ifndef OPENAFS
     return xfspioctl(AFSCALL_PIOCTL, a_path, o_opcode, a_paramsP,
 		     a_followSymlinks);
+#else /* OPENAFS */
+    return syscall(AFS_SYSCALL, AFSCALL_PIOCTL, a_path, o_opcode, a_paramsP,
+                   a_followSymlinks);
+#endif /* OPENAFS */
 }
 
 int
@@ -79,7 +88,11 @@
 int
 k_setpag(void)
 {
+#ifndef OPENAFS
     return xfspioctl(AFSCALL_SETPAG, NULL, 0, NULL, 0);
+#else /* OPENAFS */
+    return syscall(AFS_SYSCALL, AFSCALL_SETPAG, NULL, 0, NULL, 0);
+#endif /* OPENAFS */
 }
 
 int
