aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-10-12 22:00:28 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-10-12 22:00:28 +0000
commitb125f9998b3b28ac22b7878c2a2c6fae8cb16555 (patch)
treecc275da7dfac20c3764a157ce6d3e02bc5bd3c8e /fetchmail.h
parentb4adf69a38a9ac0393763cb3f3b3f4a7faea7def (diff)
downloadfetchmail-b125f9998b3b28ac22b7878c2a2c6fae8cb16555.tar.gz
fetchmail-b125f9998b3b28ac22b7878c2a2c6fae8cb16555.tar.bz2
fetchmail-b125f9998b3b28ac22b7878c2a2c6fae8cb16555.zip
Remainder of 2003-11-07-6.2.5-shetye-bugfixes.diff:
Fix sys/time.h and time.h handling. See http://funknet.net/fetchmail/patches/2003-11-07-6.2.5-shetye-bugfixes.diff svn path=/trunk/; revision=3940
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fetchmail.h b/fetchmail.h
index 146b1712..b47d6293 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -22,6 +22,18 @@
#include <stdio.h>
+/* We need this for time_t */
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
/* constants designating the various supported protocols */
#define P_AUTO 1
#define P_POP2 2