diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 390a66ec162ebe8ee80c48cf3932a62bf5eab7ed..9e23a4af06efa10ec652a8643cc0528c80211196 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
return 0;
}
-
static int find_first_weekday(void){
static int first_weekday = -1;
if (first_weekday == -1){
-#if defined(HAVE_NL_LANGINFO)
+#ifdef HAVE__NL_TIME_WEEK_1STDAY
/* according to http://sourceware.org/ml/libc-locales/2009-q1/msg00011.html */
long week_1stday_l = (long) nl_langinfo (_NL_TIME_WEEK_1STDAY);
if (week_1stday_l == 19971130) first_weekday = 0; /* Sun */