diff options
author | Your Name <you@example.com> | 2019-10-08 07:10:24 +0100 |
---|---|---|
committer | Your Name <you@example.com> | 2019-10-08 07:10:24 +0100 |
commit | ef6a23c56c21718489536a0475107029eaf1e993 (patch) | |
tree | bec79eb4f6a2e3c86b5dd14249248b2c615e1a62 | |
parent | c9b8482030929f53937e32fce63c78a4a0acadfd (diff) | |
download | sympathy-ef6a23c56c21718489536a0475107029eaf1e993.tar.gz sympathy-ef6a23c56c21718489536a0475107029eaf1e993.tar.bz2 sympathy-ef6a23c56c21718489536a0475107029eaf1e993.zip |
use sysmacros.h for major/minor
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | src/lockfile.c | 4 | ||||
-rw-r--r-- | src/project.h | 4 |
3 files changed, 9 insertions, 1 deletions
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 <sys/time.h> #include <signal.h> +#if defined (HAVE_SYS_SYSMACROS_H) +#include <sys/sysmacros.h> +#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 <sys/stat.h> #endif +#if defined (HAVE_SYS_SYSMACROS_H) +#include <sys/sysmacros.h> +#endif + #include <signal.h> #include <fcntl.h> #include <errno.h> |