summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ddb/db_elf.c')
-rw-r--r--sys/ddb/db_elf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/ddb/db_elf.c b/sys/ddb/db_elf.c
index b4fd53d..97e97ca 100644
--- a/sys/ddb/db_elf.c
+++ b/sys/ddb/db_elf.c
@@ -38,10 +38,12 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#if defined(__ELF__) && defined(__alpha__)
+#ifdef __ELF__
#include "opt_ddb.h"
+#ifdef DDB_NOKLDSYM
+
#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
@@ -378,4 +380,6 @@ kdb_init(void)
X_db_sym_init(ksym_start, ksym_end, "kernel");
}
-#endif
+#endif /* DDB_NOKLDSYM */
+
+#endif /* __ELF__ */
OpenPOWER on IntegriCloud