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
This commit is contained in:
John Baldwin 2006-03-01 16:37:09 +00:00
parent ba526146e7
commit 8898b46b1a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156160
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -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: