summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ddb/db_sym.c')
-rw-r--r--sys/ddb/db_sym.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index 1e35a097f53..feae038d68b 100644
--- a/sys/ddb/db_sym.c
+++ b/sys/ddb/db_sym.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_sym.c,v 1.37 2015/03/14 03:38:46 jsg Exp $ */
+/* $OpenBSD: db_sym.c,v 1.38 2015/08/12 06:19:25 mlarkin Exp $ */
/* $NetBSD: db_sym.c,v 1.24 2000/08/11 22:50:47 tv Exp $ */
/*
@@ -120,13 +120,15 @@ ddb_init(void)
const db_symformat_t **symf;
const char *name = "bsd";
extern char *esym;
-#if defined(__sparc64__) || defined(__mips__) || defined(__amd64__)
+#if defined(__sparc64__) || defined(__mips__) || defined(__amd64__) || \
+ defined(__i386__)
extern char *ssym;
#endif
char *xssym, *xesym;
xesym = esym;
-#if defined(__sparc64__) || defined(__mips__) || defined(__amd64__)
+#if defined(__sparc64__) || defined(__mips__) || defined(__amd64__) || \
+ defined(__i386__)
xssym = ssym;
#else
xssym = (char *)&end;