diff options
Diffstat (limited to 'assuan/assuan-defs.h')
| -rw-r--r-- | assuan/assuan-defs.h | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/assuan/assuan-defs.h b/assuan/assuan-defs.h index fa04f0b2..33cdfa3d 100644 --- a/assuan/assuan-defs.h +++ b/assuan/assuan-defs.h @@ -140,12 +140,14 @@ struct assuan_context_s    int listen_fd;  /* The fd we are listening on (used by socket servers) */    int connected_fd; /* helper */ +#ifndef HAVE_W32_SYSTEM    struct { -    int   valid;   /* Whether this structure has valid information. */ +    int valid;   /* Whether this structure has valid information. */      pid_t pid;     /* The pid of the peer. */      uid_t uid;     /* The uid of the peer. */      gid_t gid;     /* The gid of the peer. */    } peercred; +#endif /* HAVE_W32_SYSTEM */    /* Used for Unix domain sockets.  */    struct sockaddr_un myaddr; @@ -259,6 +261,8 @@ void  _assuan_free (void *p);  #ifdef HAVE_W32_SYSTEM  const char *_assuan_w32_strerror (int ec);  #define w32_strerror(e) _assuan_w32_strerror ((e)) +int _assuan_gpg_strerror_r (unsigned int err, char *buf, size_t buflen); +const char *_assuan_gpg_strsource (unsigned int err);  #endif /*HAVE_W32_SYSTEM*/ @@ -280,8 +284,13 @@ pid_t _assuan_waitpid (pid_t pid, int *status, int options);  ssize_t _assuan_simple_read (assuan_context_t ctx, void *buffer, size_t size);  ssize_t _assuan_simple_write (assuan_context_t ctx, const void *buffer,  			      size_t size); +#ifdef HAVE_W32_SYSTEM +int _assuan_simple_sendmsg (assuan_context_t ctx, void *msg); +int _assuan_simple_recvmsg (assuan_context_t ctx, void *msg); +#else  ssize_t _assuan_simple_sendmsg (assuan_context_t ctx, struct msghdr *msg);  ssize_t _assuan_simple_recvmsg (assuan_context_t ctx, struct msghdr *msg); +#endif  /*-- assuan-socket.c --*/  int _assuan_close (int fd); | 
