(svn r4109) - Fix (r4105) [iconv]: Only include the needed headers when ICONV is actually used. Thanks for noticing Bjarni
authorDarkvater
Sat, 25 Mar 2006 15:47:20 +0000
changeset 3332 7a671549da48
parent 3331 da6bbabbb6cc
child 3333 5feb21487332
(svn r4109) - Fix (r4105) [iconv]: Only include the needed headers when ICONV is actually used. Thanks for noticing Bjarni
unix.c
--- a/unix.c	Sat Mar 25 10:38:28 2006 +0000
+++ b/unix.c	Sat Mar 25 15:47:20 2006 +0000
@@ -8,15 +8,12 @@
 #include "table/strings.h"
 #include "hal.h"
 #include "variables.h"
-#include "debug.h"
 
 #include <dirent.h>
 #include <unistd.h>
 #include <sys/stat.h>
 #include <time.h>
 #include <signal.h>
-#include <iconv.h>
-#include <errno.h>
 
 #ifdef USE_HOMEDIR
 #include <pwd.h>
@@ -613,6 +610,10 @@
 
 #ifdef WITH_ICONV
 
+#include <iconv.h>
+#include <errno.h>
+#include "debug.h"
+
 #define INTERNALCODE "ISO-8859-15"
 
 /** Try and try to decipher the current locale from environmental