aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-support.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-04-05 05:17:21 +0000
committerNIIBE Yutaka <[email protected]>2022-04-05 05:25:00 +0000
commit110a375401878b72984241c0dd84cb7fdeaae795 (patch)
treeebc512ae56d23d480ef1a83a4f99258e7fed157b /src/assuan-support.c
parentqt: Check arguments passed to the revoke key job (diff)
downloadgpgme-110a375401878b72984241c0dd84cb7fdeaae795.tar.gz
gpgme-110a375401878b72984241c0dd84cb7fdeaae795.zip
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 <[email protected]>
Diffstat (limited to 'src/assuan-support.c')
-rw-r--r--src/assuan-support.c10
1 files changed, 8 insertions, 2 deletions
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 <stdlib.h>
#include <errno.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifndef HAVE_W32_SYSTEM
+#include <sys/wait.h>
+#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;
}