From bcd1b8044d8d3f5eabfb4895ee3778860a58723d Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Mon, 21 Mar 2005 18:13:44 +0000 Subject: Do not include #module support if there is no libdl 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; -- cgit v0.10.2