From 746b0fc6a95c2221b6b7a1061552bfccbb9ee9c3 Mon Sep 17 00:00:00 2001 From: Jesse Date: Wed, 4 May 2022 12:10:27 -0300 Subject: [PATCH] Add sys/sysmacros.h to mountpoint.c to fix compiling on systems where major/minor macros are not defined implicitly. --- doc/Changelog | 2 ++ src/mountpoint.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index ec4ad4c..3d2bb12 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -2,6 +2,8 @@ sysvinit (3.05) unreleased; urgency=low * Helge Kreutzmann provided updated Makefile for translation of manual pages. This has been added to the man directory. + * Added sys/sysmacros.h include in mountpoint.c to fix + compiler errors on systems where major/minor macros were not defined. sysvinit (3.04) released; urgency=low * Mark Hindley supplied patch to make bootlogd compile diff --git a/src/mountpoint.c b/src/mountpoint.c index b24335e..184b1f6 100644 --- a/src/mountpoint.c +++ b/src/mountpoint.c @@ -32,6 +32,10 @@ #include #include +#if defined (__linux__) || defined(__GNU__) +#include +#endif + #ifndef PATH_MAX #define PATH_MAX 2048 #endif