Skip to content
Snippets Groups Projects
Commit 244e4d53 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Minor change.

Rev: src/modules/files/configure.in:1.21
Rev: src/modules/files/efuns.c:1.26
parent 7c77829e
No related branches found
No related tags found
No related merge requests found
...@@ -135,6 +135,7 @@ int main() ...@@ -135,6 +135,7 @@ int main()
AC_MSG_CHECKING(if the struct statfs has the member f_bavail) AC_MSG_CHECKING(if the struct statfs has the member f_bavail)
AC_CACHE_VAL(pike_cv_struct_statfs_f_bavail, [ AC_CACHE_VAL(pike_cv_struct_statfs_f_bavail, [
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <sys/stat.h>
#ifdef HAVE_SYS_MOUNT_H #ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h> #include <sys/mount.h>
#endif #endif
......
...@@ -189,11 +189,9 @@ void f_filesystem_stat(INT32 args) ...@@ -189,11 +189,9 @@ void f_filesystem_stat(INT32 args)
push_int(st.f_blocks); push_int(st.f_blocks);
push_text("bfree"); push_text("bfree");
push_int(st.f_bfree); push_int(st.f_bfree);
push_text("bavail");
#ifdef HAVE_STATFS_F_BAVAIL #ifdef HAVE_STATFS_F_BAVAIL
push_text("bavail");
push_int(st.f_bavail); push_int(st.f_bavail);
#else
push_int(st.f_bfree);
#endif /* HAVE_STATFS_F_BAVAIL */ #endif /* HAVE_STATFS_F_BAVAIL */
push_text("files"); push_text("files");
push_int(st.f_files); push_int(st.f_files);
...@@ -201,7 +199,11 @@ void f_filesystem_stat(INT32 args) ...@@ -201,7 +199,11 @@ void f_filesystem_stat(INT32 args)
push_int(st.f_ffree); push_int(st.f_ffree);
push_text("favail"); push_text("favail");
push_int(st.f_ffree); push_int(st.f_ffree);
#ifdef HAVE_STATFS_F_BAVAIL
f_aggregate_mapping(7*2); f_aggregate_mapping(7*2);
#else
f_aggregate_mapping(6*2);
#endif /* HAVE_STATFS_F_BAVAIL */
#else #else
#ifdef HAVE_USTAT #ifdef HAVE_USTAT
push_text("bfree"); push_text("bfree");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment