[Pkg-wmaker-commits] [wmload] 51/58: wmload: Bump _POSIX_C_SOURCE to 200112L.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:36:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmload.

commit 5bc3efb2fa90189637d10c9a20d380227d88e08a
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Sun Aug 23 23:27:59 2015 -0400

    wmload: Bump _POSIX_C_SOURCE to 200112L.
    
    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.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wmload.c b/wmload.c
index a6f55c8..c30f7bf 100644
--- a/wmload.c
+++ b/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 <stdio.h>
 #include <string.h>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmload.git



More information about the Pkg-wmaker-commits mailing list