diff options
Diffstat (limited to 'tools/libfsimage/common/fsimage_plugin.c')
-rw-r--r-- | tools/libfsimage/common/fsimage_plugin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/libfsimage/common/fsimage_plugin.c b/tools/libfsimage/common/fsimage_plugin.c index d62435c8dd..5ee9d746b2 100644 --- a/tools/libfsimage/common/fsimage_plugin.c +++ b/tools/libfsimage/common/fsimage_plugin.c @@ -131,7 +131,10 @@ static int load_plugins(void) int err; int ret = -1; -#ifdef __sun__ +#if defined(FSIMAGE_FSDIR) + if (fsdir == NULL) + fsdir = FSIMAGE_FSDIR; +#elif defined(__sun__) if (fsdir == NULL) fsdir = "/usr/lib/fs"; |