aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gpgme/ChangeLog4
-rw-r--r--gpgme/rungpg.c2
-rw-r--r--gpgme/types.h5
-rw-r--r--tests/t-verify.c2
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 <[email protected]>
+ * 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) ) {