diff options
author | Kalev Lember <kalev@smartlink.ee> | 2009-04-08 19:03:12 (GMT) |
---|---|---|
committer | Kalev Lember <kalev@smartlink.ee> | 2009-04-08 19:03:12 (GMT) |
commit | 4b2636407cd321efe3b0e2af72cee3aff7a8e829 (patch) | |
tree | ec15a3aed87e11e20155cd414b1a0f09e8a4e2db /cmd.c | |
parent | aec1eece73b0446201b00f916724c27f0a85e45b (diff) | |
download | powwow-4b2636407cd321efe3b0e2af72cee3aff7a8e829.zip powwow-4b2636407cd321efe3b0e2af72cee3aff7a8e829.tar.gz powwow-4b2636407cd321efe3b0e2af72cee3aff7a8e829.tar.bz2 |
Add a configure option to select plugin directory.
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -326,6 +326,7 @@ static void cmd_module __P1 (char *,arg) { int pindex; struct stat junk; char *prefixes[] = { + PLUGIN_DIR, ".", "/lib/powwow", "/usr/lib/powwow", @@ -337,7 +338,7 @@ static void cmd_module __P1 (char *,arg) { /* I changed it to work this way so that you can have libs in multiple places and * also eventually to allow it to use .dll instead of .so under the cygwin environment */ - for( pindex = 0; pindex < 4; pindex++ ) { + for( pindex = 0; pindex < 5; pindex++ ) { bzero( libname, 1024 ); /* don't look for name without .so, it breaks if you have a file |