diff options
author | Marcus Brinkmann <mb@g10code.com> | 2007-07-04 19:57:47 +0000 |
---|---|---|
committer | Marcus Brinkmann <mb@g10code.com> | 2007-07-04 19:57:47 +0000 |
commit | fc6a186038aea32cbcb622d732ea8a0f44a3f24b (patch) | |
tree | 7b123c225591ae70cf4f62211cd921d698c22650 /src/assuan-defs.h | |
parent | 9786fe23fd24159897df32d2b18f184a1f607791 (diff) | |
download | libassuan-fc6a186038aea32cbcb622d732ea8a0f44a3f24b.tar.gz |
2007-07-04 Marcus Brinkmann <marcus@g10code.de>
Change _WIN32 to HAVE_W32_SYSTEM for consistency.
* assuan-defs.h (struct assuan_context_s): Have full peercred
structure even if not HAVE_SO_PEERCRED, but not if
HAVE_W32_SYSTEM.
Diffstat (limited to 'src/assuan-defs.h')
-rw-r--r-- | src/assuan-defs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/assuan-defs.h b/src/assuan-defs.h index 6f47454..33cdfa3 100644 --- a/src/assuan-defs.h +++ b/src/assuan-defs.h @@ -140,14 +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. */ -#ifdef HAVE_SO_PEERCRED + 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. */ -#endif /*HAVE_SO_PEERCRED*/ } peercred; +#endif /* HAVE_W32_SYSTEM */ /* Used for Unix domain sockets. */ struct sockaddr_un myaddr; @@ -284,7 +284,7 @@ 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 _WIN32 +#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 |