X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Frx%2Frx.c;h=4b71a6aca59cf2a65e5aa7fd5493839969e9c435;hp=4ef315f684add8cf7b532a49f89812b13c2441e1;hb=38136f03cf9043ec98d83653f4fddf5a02e48a2a;hpb=843f9f4aefa73aac587501b6ebc5a91dc0060530 diff --git a/src/rx/rx.c b/src/rx/rx.c index 4ef315f..4b71a6a 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -432,7 +432,7 @@ int rx_Init(u_int port) rx_sleepLock = alloc_spinlock(LAST_HELD_ORDER-10, "rx_sleepLock"); #endif /* KERNEL && AFS_HPUX110_ENV */ #else /* RX_ENABLE_LOCKS */ -#if defined(KERNEL) && defined(AFS_GLOBAL_SUNLOCK) && !defined(AFS_HPUX_ENV) +#if defined(KERNEL) && defined(AFS_GLOBAL_SUNLOCK) && !defined(AFS_HPUX_ENV) && !defined(AFS_OBSD_ENV) mutex_init(&afs_rxglobal_lock, "afs_rxglobal_lock", MUTEX_DEFAULT, NULL); #endif /* AFS_GLOBAL_SUNLOCK */ #endif /* RX_ENABLE_LOCKS */ @@ -6322,8 +6322,10 @@ void shutdown_rx(void) { struct rx_serverQueueEntry *np; register int i, j; +#ifndef KERNEL register struct rx_call *call; register struct rx_serverQueueEntry *sq; +#endif /* KERNEL */ LOCK_RX_INIT if (rxinit_status == 1) {