aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd.c b/cmd.c
index 5460f96..b2800ba 100644
--- a/cmd.c
+++ b/cmd.c
@@ -244,6 +244,12 @@ static void cmd_module __P1 (char *,arg) {
* also eventually to allow it to use .dll instead of .so under the cygwin environment */
for( pindex = 0; pindex < 4; pindex++ ) {
bzero( libname, 1024 );
+
+ snprintf( libname, 1024, "%s/%s", prefixes[ pindex ], arg );
+ if( stat( libname, &junk ) == 0 ) {
+ break;
+ }
+
snprintf( libname, 1024, "%s/%s.so", prefixes[ pindex ], arg );
if( stat( libname, &junk ) == 0 ) {
break;