git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2008
91ce42f0-d328-0410-95d8-
f526ca767f89
#ifdef HAVE_WIN32
#include <windows.h>
#ifdef HAVE_WIN32
#include <windows.h>
+#include "../lib/winapi.h"
#define isatty(fd) (fd==0)
#define isatty(fd) (fd==0)
-DWORD g_platform_id = VER_PLATFORM_WIN32_WINDOWS;
#endif
/* Exported variables */
#endif
/* Exported variables */
signal(SIGTTIN, got_sigtin);
signal(SIGTTOU, got_sigtout);
trapctlc();
signal(SIGTTIN, got_sigtin);
signal(SIGTTOU, got_sigtout);
trapctlc();
+#else
+ InitWinAPIWrapper();
input_line(sock->msg, len);
break;
}
input_line(sock->msg, len);
break;
}
+#endif
+#ifdef HAVE_WIN32 /* use special console for input on win32 */
+ if (input == stdin) {
+ if (win32_cgets(sock->msg, len) == NULL) {
+ return -1;
+ }
+ }
+ else
#endif
if (fgets(sock->msg, len, input) == NULL) {
return -1;
#endif
if (fgets(sock->msg, len, input) == NULL) {
return -1;
fputs(buf, output);
}
#else
fputs(buf, output);
}
#else
fputs(buf, output);
fflush(output);
if (tee) {
fputs(buf, output);
fflush(output);
if (tee) {