aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-03-13 09:04:47 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-03-13 09:04:47 +0000
commit346f865bc9d1a8492df260378c038f247e99d95a (patch)
tree39fd8c9b83debab725206176f99b9d1d2709c7f3 /fetchmail.h
parent7c9a0061dc06deb11db47e349610fb607c665af8 (diff)
downloadfetchmail-346f865bc9d1a8492df260378c038f247e99d95a.tar.gz
fetchmail-346f865bc9d1a8492df260378c038f247e99d95a.tar.bz2
fetchmail-346f865bc9d1a8492df260378c038f247e99d95a.zip
Deal with non-void malloc type.
svn path=/trunk/; revision=927
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/fetchmail.h b/fetchmail.h
index 063b2a16..f1edb8d7 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -197,10 +197,6 @@ void gen_send ();
int gen_transact ();
#endif
-void *xmalloc(int);
-void *xrealloc(void *, int);
-char *xstrdup(const char *);
-
int do_protocol(struct query *, const struct method *);
int doPOP2 (struct query *);
int doPOP3 (struct query *);
@@ -243,6 +239,16 @@ void escapes(const char *, char *);
void yyerror(const char *);
int yylex(void);
+#if defined(HAVE_VOIDPOINTER)
+#define XMALLOCTYPE void
+#else
+#define XMALLOCTYPE char
+#endif
+
+XMALLOCTYPE *xmalloc(int);
+XMALLOCTYPE *xrealloc(XMALLOCTYPE *, int);
+char *xstrdup(const char *);
+
#define FALSE 0
#define TRUE 1