mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Wrap FILE_MIME_OPTS use in check (#622)
We leave it undefined on Solaris/Illumos because no such options exist, so only use it if we have it.
This commit is contained in:
parent
f5b5cf5fd7
commit
68b9185071
|
@ -3698,9 +3698,11 @@ static bool show_stats(const char *fpath, const struct stat *sb)
|
||||||
}
|
}
|
||||||
fprintf(fp, " %s\n ", begin);
|
fprintf(fp, " %s\n ", begin);
|
||||||
|
|
||||||
|
#ifdef FILE_MIME_OPTS
|
||||||
/* Show the file mime type */
|
/* Show the file mime type */
|
||||||
get_output(g_buf, CMD_LEN_MAX, "file", FILE_MIME_OPTS, fpath, FALSE);
|
get_output(g_buf, CMD_LEN_MAX, "file", FILE_MIME_OPTS, fpath, FALSE);
|
||||||
fprintf(fp, "%s", g_buf);
|
fprintf(fp, "%s", g_buf);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue