mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 02:06:18 +01:00
build: Fix all statfs() tests failing
The current statfs() compilation tests all fail because statfs() expects the first argument to be non-null. Pass a dummy path instead of NULL to satisfy the compiler. https://bugzilla.gnome.org/show_bug.cgi?id=764574
This commit is contained in:
parent
21ad4c800c
commit
e9cf9f2c59
@ -1064,7 +1064,7 @@ AS_IF([test "$ac_cv_func_statfs" = yes], [
|
||||
#ifdef HAVE_SYS_STATFS_H
|
||||
#include <sys/statfs.h>
|
||||
#endif], [struct statfs st;
|
||||
statfs(NULL, &st);],[
|
||||
statfs("/", &st);],[
|
||||
AC_MSG_RESULT([2])
|
||||
AC_DEFINE(STATFS_ARGS, 2, [Number of arguments to statfs()])],[
|
||||
AC_TRY_COMPILE([#include <unistd.h>
|
||||
@ -1080,7 +1080,7 @@ AS_IF([test "$ac_cv_func_statfs" = yes], [
|
||||
#ifdef HAVE_SYS_STATFS_H
|
||||
#include <sys/statfs.h>
|
||||
#endif], [struct statfs st;
|
||||
statfs(NULL, &st, sizeof (st), 0);],[
|
||||
statfs("/", &st, sizeof (st), 0);],[
|
||||
AC_MSG_RESULT([4])
|
||||
AC_DEFINE(STATFS_ARGS, 4, [Number of arguments to statfs()])],[
|
||||
AC_MSG_RESULT(unknown)
|
||||
|
Loading…
Reference in New Issue
Block a user