aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-06-10 21:32:47 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-06-10 21:32:47 +0000
commit566cab9427e5d6ce8bdff82d911ec76662ca7927 (patch)
treea107c37aa4c60975d11b29c0fc6687910947985b /imap.c
parent36f3a7296943022abe94ded17a0cae82614f35ab (diff)
downloadfetchmail-566cab9427e5d6ce8bdff82d911ec76662ca7927.tar.gz
fetchmail-566cab9427e5d6ce8bdff82d911ec76662ca7927.tar.bz2
fetchmail-566cab9427e5d6ce8bdff82d911ec76662ca7927.zip
Guarantee that we can deduce a 32-bit type.
svn path=/trunk/; revision=1079
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/imap.c b/imap.c
index a593039f..276cf46d 100644
--- a/imap.c
+++ b/imap.c
@@ -95,7 +95,15 @@ int imap_ok (int sock, char *argbuf)
}
#ifdef KERBEROS_V4
-#include <sys/types.h>
+#if SIZEOF_INT = 4
+typedef int32 int;
+#elif SIZEOF_SHORT = 4
+typedef int32 short;
+#elif SIZEOF_LONG = 4
+typedef int32 long;
+#else
+#error Cannot deduce a 32-bit-type
+#endif
static int do_rfc1731(int sock, struct query *ctl, char *buf)
/* authenticate as per RFC1731 -- note 32-bit integer requirement here */
@@ -103,7 +111,7 @@ static int do_rfc1731(int sock, struct query *ctl, char *buf)
int result = 0, len;
char buf1[4096], buf2[4096];
union {
- u_int32_t cint;
+ int32 cint;
char cstr[4];
} challenge1, challenge2;
char srvinst[INST_SZ];