diff options
author | Werner Koch <wk@gnupg.org> | 1998-05-13 19:53:36 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-05-13 19:53:36 +0200 |
commit | 0e5a31d7be80d1dd1bcdff04dad226f0f49e0cce (patch) | |
tree | c569c8c335f811af291181d48bceb336906025a0 /include | |
parent | add DSA key generation (diff) | |
download | gnupg2-0e5a31d7be80d1dd1bcdff04dad226f0f49e0cce.tar.xz gnupg2-0e5a31d7be80d1dd1bcdff04dad226f0f49e0cce.zip |
can create v4 signatures
Diffstat (limited to 'include')
-rw-r--r-- | include/errors.h | 5 | ||||
-rw-r--r-- | include/types.h | 17 | ||||
-rw-r--r-- | include/util.h | 4 |
3 files changed, 26 insertions, 0 deletions
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 <sys/types.h> 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 |