From 52b92185dea472acc7e7b1d32b771b5dc1fa3b00 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Mon, 27 Jan 2014 21:55:57 +0000 Subject: [PATCH] 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. --- doc/Changelog | 3 +++ src/sulogin.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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')