From 04e0ea083aae051509b1fbd102dd3c4f236d8e11 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 14 Feb 2001 19:42:49 +0000 Subject: [PATCH] W32 fixes --- gpgme/ChangeLog | 4 ++++ gpgme/rungpg.c | 2 +- gpgme/types.h | 5 +++++ tests/t-verify.c | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 7acb34c9..bcb71352 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,5 +1,9 @@ 2001-02-13 Werner Koch + * rungpg.c (struct reap_s): Replaced pid_t by int. + + * types.h: Add ulong typedef. + * rungpg.c (do_reaping,_gpgme_gpg_housecleaning): New. (_gpgme_gpg_release): Reap children. * io.h, posix-io.c (_gpgme_io_kill): New. diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c index 9b9e8ee8..261c71f7 100644 --- a/gpgme/rungpg.c +++ b/gpgme/rungpg.c @@ -118,7 +118,7 @@ struct gpg_object_s { struct reap_s { struct reap_s *next; - pid_t pid; + int pid; time_t entered; int term_send; }; diff --git a/gpgme/types.h b/gpgme/types.h index 38d83b2c..e5642e12 100644 --- a/gpgme/types.h +++ b/gpgme/types.h @@ -23,7 +23,12 @@ #include "gpgme.h" /* external objects and prototypes */ +#ifndef HAVE_BYTE_TYPEDEF typedef unsigned char byte; +#endif +#ifndef HAVE_ULONG_TYPEDEF +typedef unsigned long ulong; +#endif typedef enum { diff --git a/tests/t-verify.c b/tests/t-verify.c index 22ff1589..9372a7c6 100644 --- a/tests/t-verify.c +++ b/tests/t-verify.c @@ -111,7 +111,7 @@ print_sig_stat ( GpgmeCtx ctx, GpgmeSigStat status ) printf ("Verification Status: %s\n", status_string (status)); for(idx=0; (s=gpgme_get_sig_status (ctx, idx, &status, &created)); idx++ ) { - printf ("sig %d: created: %lu status: %s\n", idx, (ulong)created, + printf ("sig %d: created: %lu status: %s\n", idx, (unsigned long)created, status_string(status) ); printf ("sig %d: fpr/keyid=`%s'\n", idx, s ); if ( !gpgme_get_sig_key (ctx, idx, &key) ) {