aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2005-03-21 18:13:44 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2005-03-21 18:13:44 (GMT)
commitbcd1b8044d8d3f5eabfb4895ee3778860a58723d (patch)
tree3e02869b63f835cf064ba5bcf790cf711a77a711
parentd0f2c552fb33fb2a36af5308d7cbb866fef5c288 (diff)
downloadpowwow-bcd1b8044d8d3f5eabfb4895ee3778860a58723d.zip
powwow-bcd1b8044d8d3f5eabfb4895ee3778860a58723d.tar.gz
powwow-bcd1b8044d8d3f5eabfb4895ee3778860a58723d.tar.bz2
Do not include #module support if there is no libdl
-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;