From be8899e6aa58b7fc8393eb06ea6d8a77708051b5 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 10 May 2004 13:47:52 +0000 Subject: [PATCH] Fixed prerequisite headers for sys/buf.h (needed on FreeBSD) --- configure.ac | 7 ++++++- src/system.h | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d1f070b..d179573 100644 --- a/configure.ac +++ b/configure.ac @@ -36,11 +36,16 @@ AC_C_INLINE AC_CHECK_HEADERS(fcntl.h linux/fd.h memory.h net/errno.h \ sgtty.h string.h \ - sys/buf.h sys/device.h sys/gentape.h \ + sys/param.h sys/device.h sys/gentape.h \ sys/inet.h sys/io/trioctl.h \ sys/mtio.h sys/time.h sys/tprintf.h sys/tape.h \ unistd.h) +AC_CHECK_HEADERS([sys/buf.h], [], [], +[#if HAVE_SYS_PARAM_H +#include +#endif]) + AC_HEADER_SYS_WAIT AM_STDBOOL_H diff --git a/src/system.h b/src/system.h index d82e8cd..a710e13 100644 --- a/src/system.h +++ b/src/system.h @@ -393,6 +393,9 @@ extern int errno; # if HAVE_SYS_DEVICE_H # include # endif +# if HAVE_SYS_PARAM_H +# include +# endif # if HAVE_SYS_BUF_H # include # endif -- 2.44.0