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
This commit is contained in:
Stefan Eßer 2020-12-13 19:06:59 +00:00
parent 8a428dfecb
commit d87cb51f56

View File

@ -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;