2015-12-16 00:31:54 -05:00
|
|
|
# frozen_string_literal: false
|
2016-05-28 23:08:45 -04:00
|
|
|
require_relative "../auto_ext.rb"
|
2015-03-24 04:30:15 -04: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 04:23:57 -04:00
|
|
|
have_struct_member("struct statfs", "f_flags", headers)
|
2015-03-24 04:30:15 -04:00
|
|
|
end
|
|
|
|
|
2015-05-03 09:54:54 -04:00
|
|
|
headers = %w[sys/statvfs.h].select {|h| have_header(h)}
|
2015-03-24 04:30:15 -04: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-28 23:08:45 -04:00
|
|
|
auto_ext(inc: true)
|