From 67052deb3c544017050efab56da96ed9c32f5a22 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sun, 23 Aug 2015 23:27:59 -0400 Subject: [PATCH] wmload: Bump _POSIX_C_SOURCE to 200112L. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise, we get the following warning during build. wmload.c: In function ‘GetLoad’: wmload.c:523:10: warning: incompatible implicit declaration of built-in function ‘rint’ *usr = rint(Maximum * (float)(*usr) /total); ^ Obtained from the Debian package [1]. [1] https://sources.debian.net/src/wmload/0.9.6-1/debian/patches/bump_POSIX_C_SOURCE.patch/ --- wmload/wmload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmload/wmload.c b/wmload/wmload.c index a6f55c8..c30f7bf 100644 --- a/wmload/wmload.c +++ b/wmload/wmload.c @@ -18,7 +18,7 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200112L #include #include