]> granicus.if.org Git - sysstat/commitdiff
Fix #134: Include <locale.h> to define setlocale() function
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 28 Nov 2016 16:49:27 +0000 (17:49 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 28 Nov 2016 16:49:27 +0000 (17:49 +0100)
iostat and mpstat needs to include locale.h file to define setlocale()
function and LC_NUMERIC variable name.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
iostat.c
mpstat.c

index 9f07677821cb76ac3bff45a658cbb867da5ef563..e7828a3033a9379506955e67f5455b147f2d79ef 100644 (file)
--- a/iostat.c
+++ b/iostat.c
@@ -40,8 +40,8 @@
 #include "rd_stats.h"
 #include "count.h"
 
+#include <locale.h>    /* For setlocale() */
 #ifdef USE_NLS
-#include <locale.h>
 #include <libintl.h>
 #define _(string) gettext(string)
 #else
index 942374cd5b2336a10369ae12c12e552e1c815db6..80a390c4e4db39a2a4d9c01adea86432a3d3bbcd 100644 (file)
--- a/mpstat.c
+++ b/mpstat.c
@@ -34,8 +34,8 @@
 #include "rd_stats.h"
 #include "count.h"
 
+#include <locale.h>    /* For setlocale() */
 #ifdef USE_NLS
-#include <locale.h>
 #include <libintl.h>
 #define _(string) gettext(string)
 #else