From cfa6b20d5d2e6bb69261dd40089091ba236c32d6 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 23 Mar 2016 19:09:51 -0400 Subject: [PATCH] Hacky fix for Linux --- jamlib-1.4.7/include/jamlib/jam.h | 9 +++++++-- mail_menu.c | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/jamlib-1.4.7/include/jamlib/jam.h b/jamlib-1.4.7/include/jamlib/jam.h index 42d4179..fba2a7d 100644 --- a/jamlib-1.4.7/include/jamlib/jam.h +++ b/jamlib-1.4.7/include/jamlib/jam.h @@ -44,14 +44,19 @@ #include #include #include - +#if defined(linux) +#include +#endif #if !defined(linux) -#if !(((defined(__FreeBSD__) && __FreeBSD_version >= 440000)) || defined(NeXTBSD)) +#if !(((defined(__FreeBSD__) && __FreeBSD_version >= 440000)) || defined(NeXTBSD)) typedef unsigned short ushort; /* must be 16 bits wide */ #endif typedef uint32_t ulong; /* must be 32 bits wide */ #endif typedef unsigned char uchar; /* must be 8 bits wide */ +#if defined(linux) +#define ulong uint32_t +#endif /* ** Error codes {{{ diff --git a/mail_menu.c b/mail_menu.c index 2e9531a..e7a9d55 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -612,15 +612,18 @@ int mail_menu(int socket, struct user_record *user) { for (j=i;j