fix compilation on freebsd/macos again
Costa Tsaousis (ktsaou) committed
Apr 18, 2018 at 23:27 UTC
70d0e2b76c3cd53b71057f7330313528fd3c95ce
1 file changed
+3
src/common.c
+3
@@ -1361,6 +1361,8 @@ int recursively_delete_dir(const char *path, const char *reason) {
1361
}
1362
1363
static int is_virtual_filesystem(const char *path, char **reason) {
1364
+
1365
+#ifdef __Linux__
1366
struct statfs stat;
1367
// stat.f_fsid.__val[0] is a file system id
1368
// stat.f_fsid.__val[1] is the inode
@@ -1376,6 +1378,7 @@ static int is_virtual_filesystem(const char *path, char **reason) {
1378
if(reason) *reason = "is not a virtual file system";
1379
return -1;
1380
}
1381
+#endif
1382
1383
return 0;
1384
}