summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-12-13 19:06:59 +0000
committerStefan Eßer <se@FreeBSD.org>2020-12-13 19:06:59 +0000
commitd87cb51f56615b76ecddba5a78af98b10187723e (patch)
tree081a99f4440715cdd024f33f43398ff28f631e1c /usr.bin
parent8a428dfecb4fba5fdbef7249cf6a3288973af96e (diff)
downloadsrc-test2-d87cb51f56615b76ecddba5a78af98b10187723e.tar.gz
src-test2-d87cb51f56615b76ecddba5a78af98b10187723e.zip
Fix WITHOUT_ICONV build
Move the include of langinfo.h out of the WITH_ICONV condition block, since it is not dependent on ICONV. This was correct when nl_langinfo() had only been called in the WITH_ICONV case, but that is no longer the case. Submitted by: yuripv
Notes
Notes: svn path=/head/; revision=368611
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/calendar/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/calendar/events.c b/usr.bin/calendar/events.c
index 1df2357fb959..8ddea8a85f2a 100644
--- a/usr.bin/calendar/events.c
+++ b/usr.bin/calendar/events.c
@@ -32,13 +32,13 @@ __FBSDID("$FreeBSD$");
#include <sys/time.h>
#include <err.h>
+#include <langinfo.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef WITH_ICONV
#include <iconv.h>
#include <errno.h>
-#include <langinfo.h>
static iconv_t conv = (iconv_t)-1;
static char *currentEncoding = NULL;