1 --- src/assuan-handler.c
2 +++ src/assuan-handler.c
4 #if defined(HAVE_W32CE_SYSTEM)
5 fdarray[n++] = (void*)fileno (ctx->outbound.data.fp);
6 #elif defined(HAVE_W32_SYSTEM)
7 - fdarray[n++] = (void*)_get_osfhandle (fileno (ctx->outbound.data.fp));
8 + fdarray[n++] = (void*)_get_osfhandle (_fileno (ctx->outbound.data.fp));
10 fdarray[n++] = fileno (ctx->outbound.data.fp);
12 --- src/assuan-logging.c
13 +++ src/assuan-logging.c
15 # ifdef HAVE_WINSOCK2_H
16 # include <winsock2.h>
18 +# include <process.h>
19 +# define getpid _getpid
21 #endif /*HAVE_W32_SYSTEM*/
24 +#if defined HAVE_W32_SYSTEM
25 +#define isascii __isascii
28 #include "assuan-defs.h"
30 --- src/assuan-pipe-connect.c
31 +++ src/assuan-pipe-connect.c
33 # ifdef HAVE_WINSOCK2_H
34 # include <winsock2.h>
36 +# include <process.h>
37 +# define getpid _getpid
41 --- src/assuan-socket.c
42 +++ src/assuan-socket.c
45 #ifdef HAVE_W32_SYSTEM
46 # define WIN32_LEAN_AND_MEAN
47 +# include <process.h>
48 +# define getpid _getpid
50 # include <wincrypt.h>
51 #ifndef HAVE_W32CE_SYSTEM
58 +#if defined HAVE_W32_SYSTEM
59 +#define isascii __isascii
62 #include "assuan-defs.h"
68 /* Dup stderr to /dev/null unless it is in the list of FDs to be
69 passed to the child. */
70 - fd = assuan_fd_from_posix_fd (fileno (stderr));
71 + fd = assuan_fd_from_posix_fd (_fileno (stderr));