diff options
author | NIIBE Yutaka <[email protected]> | 2017-03-07 05:01:17 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-03-07 05:06:35 +0000 |
commit | f7f806afa5083617f4aba02fc3b285b06a7d73d4 (patch) | |
tree | b06550000e9af382e6fbdecfdd2455ae4fe6fc73 /dirmngr/dns-stuff.c | |
parent | common: Fix warning for portability. (diff) | |
download | gnupg-f7f806afa5083617f4aba02fc3b285b06a7d73d4.tar.gz gnupg-f7f806afa5083617f4aba02fc3b285b06a7d73d4.zip |
agent: Fix get_client_pid for portability.
* configure.ac: Simply check getpeerucred and ucred.h, and structure
members.
* agent/command-ssh.c: Include ucred.h.
(get_client_pid) [HAVE_STRUCT_SOCKPEERCRED_PID]: Use sockpeercred
structure for OpenBSD.
[LOCAL_PEERPID]: Use LOCAL_PEERPID for macOS.
[LOCAL_PEEREID]: Use LOCAL_PEEREID for NetBSD.
[HAVE_GETPEERUCRED]: Use getpeerucred for OpenSolaris.
--
This change also addresses following bug.
GnuPG-bug-id: 2981.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'dirmngr/dns-stuff.c')
0 files changed, 0 insertions, 0 deletions