aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authorKalev Lember <kalev@smartlink.ee>2009-04-08 19:03:12 (GMT)
committerKalev Lember <kalev@smartlink.ee>2009-04-08 19:03:12 (GMT)
commit4b2636407cd321efe3b0e2af72cee3aff7a8e829 (patch)
treeec15a3aed87e11e20155cd414b1a0f09e8a4e2db /cmd.c
parentaec1eece73b0446201b00f916724c27f0a85e45b (diff)
downloadpowwow-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index 5a71442..edd6d00 100644
--- a/cmd.c
+++ b/cmd.c
@@ -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