diff options
author | David Shaw <[email protected]> | 2002-11-13 17:19:22 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-11-13 17:19:22 +0000 |
commit | 7c3eee80ba05a6843fda2c848422d1da04946267 (patch) | |
tree | 8fe76ab69a4379a1fda24d93e023ff4653d02799 /g10/exec.c | |
parent | * mk-w32-dist: Don't use iconv for pl.po. From Werner on stable branch. (diff) | |
download | gnupg-7c3eee80ba05a6843fda2c848422d1da04946267.tar.gz gnupg-7c3eee80ba05a6843fda2c848422d1da04946267.zip |
* exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32; we don't need
it here as it behaves more like a Posix system. From Werner on stable
branch.
* passphrase.c (agent_get_passphrase): Ditto. From Werner on stable
branch.
* tdbio.c (MY_O_BINARY): Need binary mode with Cygwin. From Werner on
stable branch.
* g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from the
registry. From Werner on stable branch.
Diffstat (limited to 'g10/exec.c')
-rw-r--r-- | g10/exec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/g10/exec.c b/g10/exec.c index f220dd30f..27aa874f0 100644 --- a/g10/exec.c +++ b/g10/exec.c @@ -59,7 +59,7 @@ int set_exec_path(const char *path,int method) { return G10ERR_GENERAL; } char *mkdtemp(char *template); #endif -#if defined (__MINGW32__) || defined (__CYGWIN32__) +#if defined (__MINGW32__) /* This is a nicer system() for windows that waits for programs to return before returning control to the caller. I hate helpful computers. */ @@ -136,7 +136,7 @@ static int make_tempdir(struct exec_info *info) if(tmp==NULL) { -#if defined (__MINGW32__) || defined (__CYGWIN32__) +#if defined (__MINGW32__) tmp=m_alloc(256); if(GetTempPath(256,tmp)==0) strcpy(tmp,"c:\\windows\\temp"); @@ -173,7 +173,7 @@ static int make_tempdir(struct exec_info *info) sprintf(info->tempdir,"%s" DIRSEP_S "gpg-XXXXXX",tmp); -#if defined (__MINGW32__) || defined (__CYGWIN32__) +#if defined (__MINGW32__) m_free(tmp); #endif @@ -499,7 +499,7 @@ int exec_read(struct exec_info *info) if(DBG_EXTPROG) log_debug("system() command is %s\n",info->command); -#if defined (__MINGW32__) || defined (__CYGWIN32__) +#if defined (__MINGW32__) info->progreturn=win_system(info->command); #else info->progreturn=system(info->command); |