From ef6a23c56c21718489536a0475107029eaf1e993 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 8 Oct 2019 07:10:24 +0100 Subject: use sysmacros.h for major/minor --- configure.in | 2 +- src/lockfile.c | 4 ++++ src/project.h | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index f38380b..8071912 100644 --- a/configure.in +++ b/configure.in @@ -89,7 +89,7 @@ dnl AC_DEFINE_UNQUOTED(LIBSYMPATHY_MICRO_VERSION, $LIBSYMPATHY_MICRO_VERSION) AC_CHECK_HEADERS(fcntl.h malloc.h sys/ioctl.h unistd.h) AC_CHECK_HEADERS(sys/scsi/impl/uscsi.h scsi/sg.h stdint.h) AC_CHECK_HEADERS(sys/int_types.h string.h strings.h) -AC_CHECK_HEADERS(dirent.h sys/stat.h temrio.h) +AC_CHECK_HEADERS(dirent.h sys/stat.h temrio.h sys/sysmacros.h) AC_C_INLINE AC_C_CONST diff --git a/src/lockfile.c b/src/lockfile.c index d176325..736e6f3 100644 --- a/src/lockfile.c +++ b/src/lockfile.c @@ -94,6 +94,10 @@ stop_wno_unused_on_rcsid (void) #include #include +#if defined (HAVE_SYS_SYSMACROS_H) +#include +#endif + #include "lockfile.h" extern void *xmalloc (size_t); diff --git a/src/project.h b/src/project.h index 1eda998..cc9135c 100644 --- a/src/project.h +++ b/src/project.h @@ -102,6 +102,10 @@ #include #endif +#if defined (HAVE_SYS_SYSMACROS_H) +#include +#endif + #include #include #include -- cgit v1.2.3