W32 fixes

This commit is contained in:
Werner Koch 2001-02-14 19:42:49 +00:00
parent 962bb6af10
commit 04e0ea083a
4 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2001-02-13 Werner Koch <wk@gnupg.org> 2001-02-13 Werner Koch <wk@gnupg.org>
* rungpg.c (struct reap_s): Replaced pid_t by int.
* types.h: Add ulong typedef.
* rungpg.c (do_reaping,_gpgme_gpg_housecleaning): New. * rungpg.c (do_reaping,_gpgme_gpg_housecleaning): New.
(_gpgme_gpg_release): Reap children. (_gpgme_gpg_release): Reap children.
* io.h, posix-io.c (_gpgme_io_kill): New. * io.h, posix-io.c (_gpgme_io_kill): New.

View File

@ -118,7 +118,7 @@ struct gpg_object_s {
struct reap_s { struct reap_s {
struct reap_s *next; struct reap_s *next;
pid_t pid; int pid;
time_t entered; time_t entered;
int term_send; int term_send;
}; };

View File

@ -23,7 +23,12 @@
#include "gpgme.h" /* external objects and prototypes */ #include "gpgme.h" /* external objects and prototypes */
#ifndef HAVE_BYTE_TYPEDEF
typedef unsigned char byte; typedef unsigned char byte;
#endif
#ifndef HAVE_ULONG_TYPEDEF
typedef unsigned long ulong;
#endif
typedef enum { typedef enum {

View File

@ -111,7 +111,7 @@ print_sig_stat ( GpgmeCtx ctx, GpgmeSigStat status )
printf ("Verification Status: %s\n", status_string (status)); printf ("Verification Status: %s\n", status_string (status));
for(idx=0; (s=gpgme_get_sig_status (ctx, idx, &status, &created)); idx++ ) { 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) ); status_string(status) );
printf ("sig %d: fpr/keyid=`%s'\n", idx, s ); printf ("sig %d: fpr/keyid=`%s'\n", idx, s );
if ( !gpgme_get_sig_key (ctx, idx, &key) ) { if ( !gpgme_get_sig_key (ctx, idx, &key) ) {