From 9aee2491ecc76ed272d3c945dc2f9a774f4d78b9 Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Mon, 20 Sep 2004 00:13:10 +0000 Subject: Fix compilation of vinum(4) when VINUMDEBUG is not defined. PR: 71341 Submitted by: Phil Budne MT5 candidate. --- sys/dev/vinum/vinumext.h | 2 +- sys/dev/vinum/vinummemory.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/vinum/vinumext.h b/sys/dev/vinum/vinumext.h index e60356cae36c..ed2e6a51c0cf 100644 --- a/sys/dev/vinum/vinumext.h +++ b/sys/dev/vinum/vinumext.h @@ -247,7 +247,7 @@ void FFree(void *mem, char *, int); #define LOCKDRIVE(d) lockdrive (d, __FILE__, __LINE__) #else #define Malloc(x) malloc((x), M_DEVBUF, \ - curthread->td_proc->p_intr_nesting_level == 0? M_WAITOK: M_NOWAIT) + curthread->td_intr_nesting_level == 0? M_WAITOK: M_NOWAIT) #define Free(x) free((x), M_DEVBUF) #define LOCKDRIVE(d) lockdrive (d) #endif diff --git a/sys/dev/vinum/vinummemory.c b/sys/dev/vinum/vinummemory.c index ef8a541bb762..43e19379f4b5 100644 --- a/sys/dev/vinum/vinummemory.c +++ b/sys/dev/vinum/vinummemory.c @@ -92,7 +92,6 @@ LongJmp(jmp_buf buf, int retval) #else /* not i386 */ #define LongJmp longjmp /* just use the kernel function */ #endif /* i386 */ -#endif /* VINUMDEBUG */ /* find the base name of a path name */ char * @@ -105,6 +104,7 @@ basename(char *file) else return ++f; /* skip the / */ } +#endif /* VINUMDEBUG */ #ifdef VINUMDEBUG void -- cgit v1.3