From e0af7eb3791c4ce8ebac7db004543049f1af851c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 27 Jun 2006 08:40:23 +0000 Subject: [PATCH] do no use reopen_std under W32. --- g10/ChangeLog | 4 ++++ g10/gpg.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/g10/ChangeLog b/g10/ChangeLog index cb0c7d5e1..33d00104b 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,7 @@ +2006-06-27 Werner Koch + + * gpg.c (reopen_std) [HAVE_W32_SYSTEM]: Do not use it. + 2006-06-22 David Shaw * options.h, gpg.c (main), keygen.c (keygen_upd_std_prefs, diff --git a/g10/gpg.c b/g10/gpg.c index 51eab3e1c..2b14feaa2 100644 --- a/g10/gpg.c +++ b/g10/gpg.c @@ -1631,7 +1631,7 @@ parse_trust_model(const char *model) static void reopen_std(void) { -#ifdef HAVE_STAT +#if defined(HAVE_STAT) && !defined(HAVE_W32_SYSTEM) struct stat statbuf; int did_stdin=0,did_stdout=0,did_stderr=0; FILE *complain; @@ -1685,7 +1685,7 @@ reopen_std(void) if(did_stdin==2 || did_stdout==2 || did_stderr==2) exit(3); -#endif +#endif /* HAVE_STAT && !HAVE_W32_SYSTEM */ } int