aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index 2eb4702..1a1f9c3 100644
--- a/cmd.c
+++ b/cmd.c
@@ -111,7 +111,9 @@ cmdstruct default_commands[] =
{NULL,"key", "name\t\t\texecute the `name' key binding", cmd_key,NULL},
{NULL,"keyedit", "editing-name\t\trun a line-editing function", cmd_keyedit,NULL},
{NULL,"load", "[filename]\t\tload powwow settings from file", cmd_load,NULL},
- {NULL,"module","[filename]\t\tload shared library extension", cmd_module,NULL},
+#ifdef HAVE_LIBDL
+ {NULL,"module","[name]\t\tload shared library extension", cmd_module,NULL},
+#endif
{NULL,"map", "[-[number]|walksequence]\tshow/clear/edit (auto)map", cmd_map,NULL},
{NULL,"mark", "[string[=[attr]]]\t\tdelete/list/define markers", cmd_mark,NULL},
{NULL,"movie", "[filename]\t\tbegin/end of movie record to file", cmd_movie,NULL},
@@ -223,6 +225,7 @@ void _cmd_init() {
cmd_add_command( &default_commands[ i ] );
}
+#ifdef HAVE_LIBDL
static void cmd_module __P1 (char *,arg) {
char libname[1024];
void *lib;
@@ -272,6 +275,7 @@ static void cmd_module __P1 (char *,arg) {
PRINTF( "#module error: %s\n", dlerror() );
}
}
+#endif
static void cmd_group __P1 (char *,arg) {
char *group;