mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
build: avoid compile failure on linux kernels older than 2.6.19
* configure.ac: Check for <linux/magic.h>. * src/util/storage_file.c: Include <linux/magic.h> only if present. Linux kernels prior to 2.6.19 lacked it. [__linux__] (NFS_SUPER_MAGIC): Define if not already defined.
This commit is contained in:
@@ -108,7 +108,7 @@ LIBS=$old_libs
|
||||
|
||||
dnl Availability of various common headers (non-fatal if missing).
|
||||
AC_CHECK_HEADERS([pwd.h paths.h regex.h sys/syslimits.h \
|
||||
termios.h sys/poll.h syslog.h mntent.h net/ethernet.h])
|
||||
termios.h sys/poll.h syslog.h mntent.h net/ethernet.h linux/magic.h])
|
||||
|
||||
dnl Where are the XDR functions?
|
||||
dnl If portablexdr is installed, prefer that.
|
||||
|
||||
Reference in New Issue
Block a user