diff --git a/g10/tofu.c b/g10/tofu.c index baa2ac235..5f381b08e 100644 --- a/g10/tofu.c +++ b/g10/tofu.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include "gpg.h" @@ -240,7 +239,7 @@ begin_transaction (struct db *db, int only_batch) batch_update_started = gnupg_get_time (); /* Yield to allow another process a chance to run. */ - sched_yield (); + gpgrt_yield (); } /* XXX: In split mode, this can end in deadlock.