From bf3112a503617ed78ae4cee4c4a9536065222d71 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 15 Apr 2004 14:05:55 +0000 Subject: [PATCH] Add new win32 console files git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1203 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/console/console.c | 8 ++++++++ bacula/src/console/console_conf.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bacula/src/console/console.c b/bacula/src/console/console.c index de84cb9395..93802e8556 100644 --- a/bacula/src/console/console.c +++ b/bacula/src/console/console.c @@ -41,6 +41,12 @@ #define clrbrk() #define usrbrk() 0 #endif + +#ifdef HAVE_WIN32 +#include +#define isatty(fd) (fd==1) +DWORD g_platform_id = VER_PLATFORM_WIN32_WINDOWS; +#endif /* Exported variables */ @@ -332,6 +338,7 @@ int main(int argc, char *argv[]) init_signals(terminate_console); } +#if !defined(HAVE_WIN32) /* Override Bacula default signals */ signal(SIGCHLD, SIG_IGN); signal(SIGQUIT, SIG_IGN); @@ -340,6 +347,7 @@ int main(int argc, char *argv[]) signal(SIGTTIN, got_sigtin); signal(SIGTTOU, got_sigtout); trapctlc(); +#endif if (argc) { usage(); diff --git a/bacula/src/console/console_conf.c b/bacula/src/console/console_conf.c index b9d4c72026..48e460b581 100644 --- a/bacula/src/console/console_conf.c +++ b/bacula/src/console/console_conf.c @@ -21,7 +21,7 @@ */ /* - Copyright (C) 2000, 2001 Kern Sibbald and John Walker + Copyright (C) 2000-2004 Kern Sibbald and John Walker This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License -- 2.39.5