diff --git a/doc/Changelog b/doc/Changelog index 5bbc7af..2f77b13 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -61,6 +61,9 @@ sysvinit (2.89dsf) UNRELEASED; urgency=low Debian multiarch systems. Based on patch from Andrew Gregory. * Adjust included headers to be compatible with the musl C library. Patch from Matias A. Fonzo and Dragora. + * Move dovoid() macro from #ifdef__GLIBC__ to #ifdef __linux__, + to match the condutions of the place where it is used. Thanks + to Matias A. Fonzo for noticing. -- Petter Reinholdtsen Sun Apr 11 11:28:55 CEST 2010 diff --git a/src/sulogin.c b/src/sulogin.c index 3775cb7..66dfd2c 100644 --- a/src/sulogin.c +++ b/src/sulogin.c @@ -46,7 +46,6 @@ #include #if defined(__GLIBC__) # include -# define dovoid(f) if ((f)){} #endif #ifdef __linux__ # include @@ -60,6 +59,7 @@ # ifndef MNT_DETACH # define MNT_DETACH 2 # endif +# define dovoid(f) if ((f)){} #endif #define BS CTRL('h')