X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=hcache.c;h=eea6d2009a1a07aa582c79216371675876875e09;hp=967a7c33cd350d5b88ecd03c732962d61aaccf56;hb=16392434eb28ef16069eae972640e1f534477f83;hpb=ad29f4688c8a43e718f4cf25ab9337459fc472de diff --git a/hcache.c b/hcache.c index 967a7c3..eea6d20 100644 --- a/hcache.c +++ b/hcache.c @@ -18,11 +18,17 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ -#include +# if HAVE_INTTYPES_H +# include +# else +# if HAVE_STDINT_H +# include +# endif +# endif #if HAVE_CONFIG_H #include "config.h" -#endif /* HAVE_CONFIG_H */ +#endif /* HAVE_CONFIG_H */ #ifdef USE_HCACHE @@ -34,6 +40,9 @@ #include #include +#if HAVE_SYS_TIME_H +#include +#endif #include "mutt.h" #ifdef USE_IMAP #include "message.h" @@ -130,6 +139,7 @@ dump_char(char *c, unsigned char *d, int *off) return d; } +#if 0 static unsigned char * dump_char_size(char *c, unsigned char *d, int *off, ssize_t size) { @@ -146,6 +156,7 @@ dump_char_size(char *c, unsigned char *d, int *off, ssize_t size) return d; } +#endif static void restore_char(char **c, const unsigned char *d, int *off) @@ -245,6 +256,7 @@ restore_list(LIST **l, const unsigned char *d, int *off) *l = NULL; } +#if 0 static unsigned char * dump_buffer(BUFFER *b, unsigned char *d, int *off) { @@ -281,6 +293,7 @@ restore_buffer(BUFFER **b, const unsigned char *d, int *off) restore_int(& (*b)->dsize, d, off); restore_int((unsigned int *) & (*b)->destroy, d, off); } +#endif static unsigned char * dump_parameter(PARAMETER *p, unsigned char *d, int *off)