mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
common:w32: Fix for 64-bit Windows.
* common/exectool.c (gnupg_exec_tool_stream): 64-bit Windows is LLP64. -- GnuPG-bug-id: 7139 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
77afc9ee1c
commit
e02880d512
@ -407,8 +407,13 @@ gnupg_exec_tool_stream (const char *pgmname, const char *argv[],
|
|||||||
Yeah, that is an ugly non-thread safe hack but it safes us to
|
Yeah, that is an ugly non-thread safe hack but it safes us to
|
||||||
create a copy of the array. */
|
create a copy of the array. */
|
||||||
#ifdef HAVE_W32_SYSTEM
|
#ifdef HAVE_W32_SYSTEM
|
||||||
|
# ifdef _WIN64
|
||||||
|
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%llu",
|
||||||
|
(unsigned long long)exceptclose[i]);
|
||||||
|
# else
|
||||||
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%lu",
|
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%lu",
|
||||||
(unsigned long)exceptclose[i]);
|
(unsigned long)exceptclose[i]);
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%d", exceptclose[i]);
|
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%d", exceptclose[i]);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user