mc/m4.include
sfionov 1551db2f9f Ticket #1642: filegui.c contains Linux-specific things
mc 4.7.0-pre1 introduced dynamic "Save attributes" checkbox value in Copy/Move dialog.
But code is Linux-specific, and not even isolated by macros.

I suggest to add code specific for BSD and SVR4 systems.

In BSD systems (MacOS X, NetBSD, FreeBSD) there is statfs.f_fstypename which contains name of filesystem.
Valid FS names are: msdos, msdosfs (FreeBSD), ntfs, smbfs, procfs, fusefs (BSD), fusefs_subfstype (Mac)

In SVR4 systems (Solaris and other SVR4 Unixes) there are statvfs.f_basetype and statvfs
syscall instead of statfs and also autotools define STAT_STATVFS.
Valid FS names are: pcfs, proc, ntfs, fuse, smbfs

(Note that NetBSD 3.0+ also use statvfs but with BSD syntax.)

For all other OSes we simply return 1.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 10:38:20 +02:00
..
vfs Ticket #185 (Check for gethostbyname with nsl) 2009-08-04 14:12:39 +04:00
ac_onceonly.m4 Remove autogenerated stuff from git-tracking. 2009-05-07 15:38:06 +03:00
ac-g-module-supported.m4 Fixed test conditions in m4 files for more compability 2009-07-27 13:49:49 +03:00
ac-get-fs-info.m4 Ticket #1642: filegui.c contains Linux-specific things 2009-10-28 10:38:20 +02:00
ax_path_lib_pcre.m4 Fixed test conditions in m4 files for more compability 2009-07-27 13:49:49 +03:00
dx_doxygen.m4 Fixed test conditions in m4 files for more compability 2009-07-27 13:49:49 +03:00
mc-check-search-type.m4 Ticket #1428 2009-07-31 09:38:06 +00:00
mc-mcserver.m4 Ticket #1428 2009-07-31 09:38:06 +00:00
mc-use-termcap.m4 Ticket #1423 ([FreeBSD] Fail to compile with option '--with-screen=slang' with already installed slang library) 2009-07-28 15:05:43 +03:00
mc-version.m4 Fixed bug in calculate version code when run under FreeBSD 2009-07-07 11:17:23 +03:00
mc-vfs.m4 Ticket #1428 2009-07-31 09:38:06 +00:00
mc-with-screen.m4 Ticket #1474 (fix slang include) 2009-08-12 19:32:50 +00:00