From 0e5a31d7be80d1dd1bcdff04dad226f0f49e0cce Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 13 May 1998 17:53:36 +0000 Subject: can create v4 signatures --- include/errors.h | 5 +++++ include/types.h | 17 +++++++++++++++++ include/util.h | 4 ++++ 3 files changed, 26 insertions(+) (limited to 'include') diff --git a/include/errors.h b/include/errors.h index 7f60b8715..dc7486598 100644 --- a/include/errors.h +++ b/include/errors.h @@ -62,4 +62,9 @@ #define G10ERR_TIME_CONFLICT 40 #define G10ERR_WR_PUBKEY_ALGO 41 /* unusabe pubkey algo */ + +#ifndef HAVE_STRERROR +char *strerror( int n ); +#endif + #endif /*G10_ERRORS_H*/ diff --git a/include/types.h b/include/types.h index 41adbbbd8..543cbad62 100644 --- a/include/types.h +++ b/include/types.h @@ -21,6 +21,23 @@ #ifndef G10_TYPES_H #define G10_TYPES_H + +/* The AC_CHECK_SIZEOF() in configure fails for some machines. + * we provide some fallback values here */ +#if !SIZEOF_UNSIGNED_SHORT + #undef SIZEOF_UNSIGNED_SHORT + #define SIZEOF_UNSIGNED_SHORT 2 +#endif +#if !SIZEOF_UNSIGNED_INT + #undef SIZEOF_UNSIGNED_INT + #define SIZEOF_UNSIGNED_INT 4 +#endif +#if !SIZEOF_UNSIGNED_LONG + #undef SIZEOF_UNSIGNED_LONG + #define SIZEOF_UNSIGNED_LONG 4 +#endif + + #include diff --git a/include/util.h b/include/util.h index c56cc1991..5fcce6063 100644 --- a/include/util.h +++ b/include/util.h @@ -134,6 +134,10 @@ char *strlwr(char *a); #ifndef HAVE_STRTOUL #define strtoul(a,b,c) ((unsigned long)strtol((a),(b),(c))) #endif +#ifndef HAVE_MEMMOVE + #define memmove(d, s, n) bcopy((s), (d), (n)) +#endif + /******** some macros ************/ #ifndef STR -- cgit v1.2.3