]> git.sur5r.net Git - bacula/bacula/commitdiff
Correct #ifdefing for CONSOLEs
authorKern Sibbald <kern@sibbald.com>
Wed, 13 Oct 2004 16:35:57 +0000 (16:35 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 13 Oct 2004 16:35:57 +0000 (16:35 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1645 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/util.c

index 7ac8df6863ada6348de1b4a074bf2270fc49bf8b..52dbe698ae7429ae37e556b3111179f9972ebb95 100644 (file)
@@ -126,7 +126,7 @@ unbash_spaces(POOL_MEM &pm)
    }
 }
 
-#ifdef WIN32
+#if    HAVE_WIN32 && !HAVE_CONSOLE && !HAVE_WXCONSOLE
 extern long _timezone;
 extern int _daylight;
 extern long _dstbias;
@@ -139,7 +139,7 @@ char *encode_time(time_t time, char *buf)
    struct tm tm;
    int n = 0;
 
-#ifdef WIN32
+#if    HAVE_WIN32 && !HAVE_CONSOLE && !HAVE_WXCONSOLE
     /*
      * Gross kludge to avoid a seg fault in Microsoft's CRT localtime_r(),
      * which incorrectly references a NULL returned from gmtime() if