From 110a375401878b72984241c0dd84cb7fdeaae795 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 5 Apr 2022 14:17:21 +0900 Subject: core: Don't keep using deprecated ath_ API. * src/posix-io.c: Don't include ath.h. (_gpgme_io_read): Call read directly. (_gpgme_io_write): Call write directly. (_gpgme_io_waitpid): Call waitpid directly. (_gpgme_io_select_select): Call select directly. (_gpgme_io_recvmsg): Call recvmsg directly. (_gpgme_io_sendmsg): Call sendmsg directly. (_gpgme_io_connect): Call connect directly. * src/assuan-support.c: Don't include ath.h. (my_waitpid): Call waitpid directly. -- Signed-off-by: NIIBE Yutaka --- src/assuan-support.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/assuan-support.c') diff --git a/src/assuan-support.c b/src/assuan-support.c index 0ddf29b6..7f5b5da9 100644 --- a/src/assuan-support.c +++ b/src/assuan-support.c @@ -27,10 +27,16 @@ #include #include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifndef HAVE_W32_SYSTEM +#include +#endif + #include "assuan.h" #include "gpgme.h" -#include "ath.h" #include "priv-io.h" #include "debug.h" @@ -294,7 +300,7 @@ my_waitpid (assuan_context_t ctx, pid_t pid, NOWAIT in POSIX systems just means the caller already did the waitpid for this child. */ if (! nowait) - return _gpgme_ath_waitpid (pid, status, options); + return waitpid (pid, status, options); #endif return 0; } -- cgit v1.2.3