2015-12-16 08:31:54 +03:00
|
|
|
# frozen_string_literal: false
|
2016-05-29 06:08:45 +03:00
|
|
|
require_relative "../auto_ext.rb"
|
2015-03-24 11:30:15 +03:00
|
|
|
|
|
|
|
headers = %w[sys/param.h sys/mount.h sys/vfs.h].select {|h| have_header(h)}
|
|
|
|
if have_type("struct statfs", headers)
|
|
|
|
have_struct_member("struct statfs", "f_fstypename", headers)
|
|
|
|
have_struct_member("struct statfs", "f_type", headers)
|
2016-11-05 11:23:57 +03:00
|
|
|
have_struct_member("struct statfs", "f_flags", headers)
|
2015-03-24 11:30:15 +03:00
|
|
|
end
|
|
|
|
|
2015-05-03 16:54:54 +03:00
|
|
|
headers = %w[sys/statvfs.h].select {|h| have_header(h)}
|
2015-03-24 11:30:15 +03:00
|
|
|
if have_type("struct statvfs", headers)
|
|
|
|
have_struct_member("struct statvfs", "f_fstypename", headers)
|
|
|
|
have_struct_member("struct statvfs", "f_basetype", headers)
|
|
|
|
have_struct_member("struct statvfs", "f_type", headers)
|
|
|
|
end
|
|
|
|
|
2016-05-29 06:08:45 +03:00
|
|
|
auto_ext(inc: true)
|