diff --git a/sys/gnu/fs/xfs/FreeBSD/support/kdb.c b/sys/gnu/fs/xfs/FreeBSD/support/kdb.c index 2d3aac6f390b..8aa57baf1a28 100644 --- a/sys/gnu/fs/xfs/FreeBSD/support/kdb.c +++ b/sys/gnu/fs/xfs/FreeBSD/support/kdb.c @@ -7,17 +7,16 @@ #include "opt_ddb.h" #ifdef DDB #include -#else -#error "Must have options for KDB, DDB in kernel config" #endif #include +#ifdef DDB DB_SET(xfs, xfs_ddb_cmd, db_cmd_set, CS_MORE, NULL) { db_error("No commands registered.\n"); } - +#endif int kdb_register(char *cmd, kdb_func_t func, char *usage, char *help, short minlen)