From 31c19d1d685b75377d9ff6dfbc9138ecbd5600b4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 1 Oct 2007 14:48:39 +0000 Subject: Use Assuan socket wrapper calls. Made socket servers secure under Windows. --- common/sysutils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/sysutils.h') diff --git a/common/sysutils.h b/common/sysutils.h index 2a3666882..c053e8fb9 100644 --- a/common/sysutils.h +++ b/common/sysutils.h @@ -27,9 +27,13 @@ #ifdef HAVE_W32_SYSTEM typedef void *gnupg_fd_t; #define GNUPG_INVALID_FD ((void*)(-1)) +#define INT2FD(s) ((void *)(s)) +#define FD2INT(h) ((unsigned int)(h)) #else typedef int gnupg_fd_t; #define GNUPG_INVALID_FD (-1) +#define INT2FD(s) (s) +#define FD2INT(h) (h) #endif -- cgit v1.2.3