]> git.sur5r.net Git - bacula/bacula/commitdiff
Add new win32 console files
authorKern Sibbald <kern@sibbald.com>
Thu, 15 Apr 2004 14:05:55 +0000 (14:05 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 15 Apr 2004 14:05:55 +0000 (14:05 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1203 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/console/console.c
bacula/src/console/console_conf.c

index de84cb93952dd7fe301fc08ee253aca2d5139f43..93802e85561fb0a665f6c9fdd0fb7918bd6bd91a 100644 (file)
 #define clrbrk()
 #define usrbrk() 0  
 #endif
+
+#ifdef HAVE_WIN32
+#include <windows.h>
+#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();
index b9d4c72026e525ca3a013949bd6b2e68911873da..48e460b5819d69c20b2bb806473824b0fee42de4 100644 (file)
@@ -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