From 9872f76253a569bb1a887edcbd4db90a021a351f Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Fri, 4 Sep 1998 07:58:33 +0000 Subject: [PATCH] Make this build even if sio is not in the kernel. --- sys/alpha/alpha/alpha-gdbstub.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/alpha/alpha/alpha-gdbstub.c b/sys/alpha/alpha/alpha-gdbstub.c index c8ac9efeea7c..d57230dabf3a 100644 --- a/sys/alpha/alpha/alpha-gdbstub.c +++ b/sys/alpha/alpha/alpha-gdbstub.c @@ -107,7 +107,7 @@ /* #include "sio.h" */ #include "opt_ddb.h" -#define NSIO 1 +#include "sio.h" #if NSIO == 0 void @@ -160,14 +160,20 @@ strcpy (char *dst, const char *src) static int putDebugChar (int c) /* write a single character */ { +#if NSIO > 0 siogdbputc (c); +#endif return 1; } static int getDebugChar (void) /* read and return a single char */ { +#if NSIO > 0 return siogdbgetc (); +#else + return 0; +#endif } static const char hexchars[]="0123456789abcdef";