summaryrefslogtreecommitdiff
path: root/src/common/weechat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/weechat.c')
-rw-r--r--src/common/weechat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/weechat.c b/src/common/weechat.c
index 41ab68191..66d5fea4d 100644
--- a/src/common/weechat.c
+++ b/src/common/weechat.c
@@ -52,7 +52,9 @@
#include <iconv.h>
#endif
+#ifdef HAVE_LANGINFO_CODESET
#include <langinfo.h>
+#endif
#include "weechat.h"
#include "weeconfig.h"
@@ -739,7 +741,9 @@ main (int argc, char *argv[])
textdomain (PACKAGE);
#endif
+ #ifdef HAVE_LANGINFO_CODESET
local_charset = strdup (nl_langinfo (CODESET));
+ #endif
signal (SIGINT, my_sigint); /* ignore SIGINT signal */
signal (SIGSEGV, my_sigsegv); /* crash dump when SIGSEGV is received */