mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
agent: More fix for get_client_pid for portability.
* configure.ac: Check sys/ucred.h instead of ucred.h. * agent/command-ssh.c: Include sys/ucred.h. -- It's *BSD and macOS thing. Fixes-commit: f7f806afa5083617f4aba02fc3b285b06a7d73d4 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
91a3d15cee
commit
08e686a6a6
@ -44,8 +44,8 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#endif /*!HAVE_W32_SYSTEM*/
|
||||
#ifdef HAVE_UCRED_H
|
||||
#include <ucred.h>
|
||||
#ifdef HAVE_SYS_UCRED_H
|
||||
#include <sys/ucred.h>
|
||||
#endif
|
||||
|
||||
#include "agent.h"
|
||||
|
@ -1278,7 +1278,7 @@ AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([string.h unistd.h langinfo.h termio.h locale.h getopt.h \
|
||||
pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h \
|
||||
stdint.h signal.h util.h libutil.h termios.h \
|
||||
ucred.h sys/sysmacros.h sys/mkdev.h])
|
||||
sys/ucred.h sys/sysmacros.h sys/mkdev.h])
|
||||
|
||||
AC_HEADER_TIME
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user