aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-03-01 16:37:09 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-03-01 16:37:09 +0000
commit8898b46b1ac46651833a86a28903ecbd60389234 (patch)
tree7d72dfb9d181610a286158d9bfcb6c7a58f5277c /usr.sbin
parentba526146e7955b4e07f5556a9d816e82291344ff (diff)
downloadsrc-8898b46b1ac46651833a86a28903ecbd60389234.tar.gz
src-8898b46b1ac46651833a86a28903ecbd60389234.zip
Wrap keymap menu helper functions in #ifdef WITH_SYSCONS to unbreak the
build on archs that don't include syscons support in sysinstall. Reported by: sparc64 tinderbox
Notes
Notes: svn path=/head/; revision=156160
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/keymap.c2
-rw-r--r--usr.sbin/sysinstall/keymap.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/sade/keymap.c b/usr.sbin/sade/keymap.c
index da0870743470..f6dcfd677fc1 100644
--- a/usr.sbin/sade/keymap.c
+++ b/usr.sbin/sade/keymap.c
@@ -50,6 +50,7 @@ struct keymapInfo {
* the language name only.
*/
+#ifdef WITH_SYSCONS
static int
keymapSetDefault(const char *prefix)
{
@@ -113,6 +114,7 @@ keymapMenuSelect(dialogMenuItem *self)
return dmenuOpenSimple(&MenuSysconsKeymap, FALSE) ? DITEM_SUCCESS :
DITEM_FAILURE;
}
+#endif
/*
* Return values:
diff --git a/usr.sbin/sysinstall/keymap.c b/usr.sbin/sysinstall/keymap.c
index da0870743470..f6dcfd677fc1 100644
--- a/usr.sbin/sysinstall/keymap.c
+++ b/usr.sbin/sysinstall/keymap.c
@@ -50,6 +50,7 @@ struct keymapInfo {
* the language name only.
*/
+#ifdef WITH_SYSCONS
static int
keymapSetDefault(const char *prefix)
{
@@ -113,6 +114,7 @@ keymapMenuSelect(dialogMenuItem *self)
return dmenuOpenSimple(&MenuSysconsKeymap, FALSE) ? DITEM_SUCCESS :
DITEM_FAILURE;
}
+#endif
/*
* Return values: