From 4364b9ebb3acef566a2c1955423426584147226e Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Mon, 20 Mar 2023 01:40:20 +0000 Subject: Support /proc in _dbus_file_get_content procfs has special semantics: most files are 0 size, only one read can be done on a file, and they are not larger than 4MB. Enhance _dbus_file_get_content() so that we can read files from /proc with it. Signed-off-by: Luca Boccassi --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 92124838..2620f372 100644 --- a/configure.ac +++ b/configure.ac @@ -1023,6 +1023,9 @@ if test x$with_valgrind != xno; then AC_DEFINE([WITH_VALGRIND], [1], [Define to add Valgrind instrumentation]) fi +AC_CHECK_HEADERS(sys/vfs.h, [AC_CHECK_FUNCS(fstatfs)]) +AC_CHECK_HEADERS([linux/magic.h]) + #### Set up final flags LIBDBUS_LIBS="$THREAD_LIBS $NETWORK_libs $SYSTEMD_LIBS" AC_SUBST([LIBDBUS_LIBS]) -- cgit v1.2.1