From dc9bef83b0fa416bd1bd5a1524aa4a697873b91a Mon Sep 17 00:00:00 2001 From: Antoine Verheijen Date: Thu, 6 May 2010 09:10:38 -0600 Subject: [PATCH] OpenBSD: Use osi_obsd_Free() for all releases of OBSD Use osi_obsd_Free() in afs_osi_Free() for all releases of OpenBSD, not just releases from 4.4 onward. Otherwise, afs_osi_Free() will use AFS_KFREE, which does not exist, since OBSD/osi_machdep.h is not included, resulting in unresolved symbols when trying to load the kernel module. Change-Id: Ic9632c9df347cc17e122b6302ef14e63fa5b68b4 Reviewed-on: http://gerrit.openafs.org/1910 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_osi_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/afs_osi_alloc.c b/src/afs/afs_osi_alloc.c index f5e6d8b9ad..d5282a1900 100644 --- a/src/afs/afs_osi_alloc.c +++ b/src/afs/afs_osi_alloc.c @@ -109,7 +109,7 @@ afs_osi_Free(void *x, size_t asize) osi_linux_free(x); #elif defined(AFS_FBSD_ENV) osi_fbsd_free(x); -#elif defined(AFS_OBSD44_ENV) +#elif defined(AFS_OBSD_ENV) osi_obsd_Free(x, asize); #else AFS_KFREE((struct osimem *)x, asize);