From: Denys Vlasenko Date: Mon, 7 Feb 2011 13:58:57 +0000 (+0100) Subject: incorporate header fixes proposed in bug 3097 X-Git-Tag: 1_19_0~333 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dd807c16f99b4ead544289b83c88cc2488542f72;p=oweals%2Fbusybox.git incorporate header fixes proposed in bug 3097 Not sure these are *really* needed, but I suppose they don't hurt Signed-off-by: Denys Vlasenko --- diff --git a/include/libbb.h b/include/libbb.h index 6358e654a..dd82e9754 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -33,6 +33,9 @@ #include #include #include +#ifndef major +# include +#endif #include #include #include diff --git a/include/platform.h b/include/platform.h index 9d6e21626..f0b8ec10a 100644 --- a/include/platform.h +++ b/include/platform.h @@ -362,7 +362,7 @@ typedef unsigned smalluint; #endif -#if defined(__GLIBC__) +#if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L) || defined(__GLIBC__) # define fdprintf dprintf #endif