Skip to content

Commit b883ac9

Browse files
author
Vincent Landgraf
committed
#10 always check on STATVFS
1 parent ff7a79b commit b883ac9

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

ext/vmstat/extconf.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@
3030
have_header 'sys/param.h'
3131
have_header 'sys/mount.h'
3232
have_header 'sys/statfs.h'
33-
if have_func 'statfs'
34-
have_struct_member('struct statfs', 'f_type', ['sys/param.h', 'sys/mount.h', 'sys/statfs.h'])
35-
have_struct_member('struct statfs', 'f_fstypename', ['sys/param.h', 'sys/mount.h'])
36-
elsif have_func 'statvfs', ['sys/types.h', 'sys/statvfs.h']
37-
have_struct_member('struct statvfs', 'f_basetype', ['sys/types.h', 'sys/statvfs.h'])
38-
end
33+
have_func 'statfs'
34+
have_struct_member('struct statfs', 'f_type', ['sys/param.h', 'sys/mount.h', 'sys/statfs.h'])
35+
have_struct_member('struct statfs', 'f_fstypename', ['sys/param.h', 'sys/mount.h'])
36+
have_func 'statvfs', ['sys/types.h', 'sys/statvfs.h']
37+
have_struct_member('struct statvfs', 'f_basetype', ['sys/types.h', 'sys/statvfs.h'])
3938

4039
# sysctl.h
4140
sys_headers = ['unistd.h', 'sys/sysctl.h', 'sys/types.h', 'sys/socket.h',

0 commit comments

Comments
 (0)