diff options
author | Stefan Eßer <se@FreeBSD.org> | 2020-12-13 19:06:59 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2020-12-13 19:06:59 +0000 |
commit | d87cb51f56615b76ecddba5a78af98b10187723e (patch) | |
tree | 081a99f4440715cdd024f33f43398ff28f631e1c /usr.bin/calendar/events.c | |
parent | 8a428dfecb4fba5fdbef7249cf6a3288973af96e (diff) | |
download | src-d87cb51f56615b76ecddba5a78af98b10187723e.tar.gz src-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/calendar/events.c')
-rw-r--r-- | usr.bin/calendar/events.c | 2 |
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; |