summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-09-04 07:58:33 +0000
committerdfr <dfr@FreeBSD.org>1998-09-04 07:58:33 +0000
commitc71608e2264084f00ddb0185bc7a0c5705a8debe (patch)
tree2f74eb79e83c0b2257bde044f39954056e889768 /sys
parentd1aa8892b20a71f734ee7f04b52159f017a1756c (diff)
downloadFreeBSD-src-c71608e2264084f00ddb0185bc7a0c5705a8debe.zip
FreeBSD-src-c71608e2264084f00ddb0185bc7a0c5705a8debe.tar.gz
Make this build even if sio is not in the kernel.
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/alpha-gdbstub.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/alpha/alpha/alpha-gdbstub.c b/sys/alpha/alpha/alpha-gdbstub.c
index c8ac9ef..d57230d 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";
OpenPOWER on IntegriCloud