[OpenAFS-devel] OpenAFS 1.4.1 for OpenBSD Errata

Jim Rees rees@umich.edu
Fri, 21 Apr 2006 11:21:31 -0400


You will need this patch to build and run OpenAFS 1.4.1 on OpenBSD or
FreeBSD.

Index: src/rx/rx_kernel.h
===================================================================
RCS file: /cvs/openafs/src/rx/rx_kernel.h,v
retrieving revision 1.13.2.1
diff -u -r1.13.2.1 rx_kernel.h
--- src/rx/rx_kernel.h	5 Oct 2005 05:58:42 -0000	1.13.2.1
+++ src/rx/rx_kernel.h	21 Apr 2006 15:09:14 -0000
@@ -43,6 +43,7 @@
 
 #ifndef AFS_DARWIN80_ENV
 #define ifnet_mtu(x) (x)->if_mtu
+#define ifnet_flags(x) (x?(x)->if_flags:0)
 #define AFS_IFNET_T struct ifnet *
 #else
 #define AFS_IFNET_T ifnet_t
Index: src/rx/xdr_rx.c
===================================================================
RCS file: /cvs/openafs/src/rx/xdr_rx.c,v
retrieving revision 1.10.2.3
diff -u -r1.10.2.3 xdr_rx.c
--- src/rx/xdr_rx.c	24 May 2005 23:14:44 -0000	1.10.2.3
+++ src/rx/xdr_rx.c	21 Apr 2006 15:09:15 -0000
@@ -19,9 +19,10 @@
 #endif
 
 RCSID
-    ("$Header: /cvs/openafs/src/rx/xdr_rx.c,v 1.10.2.3 2005/05/24 23:14:44 shadow Exp $");
+    ("$Header: /cvs/openafs/src/rx/xdr_rx.c,v 1.14 2006/03/02 22:42:56 rees Exp $");
 
 #ifdef KERNEL
+#include "afs/sysincludes.h"
 #ifndef UKERNEL
 #include "h/types.h"
 #include "h/uio.h"
@@ -49,7 +50,6 @@
 #include "rx/xdr.h"
 #include "netinet/in.h"
 #else /* !UKERNEL */
-#include "afs/sysincludes.h"
 #include "rpc/types.h"
 #include "rpc/xdr.h"
 #endif /* !UKERNEL */