Skip to content

Commit

Permalink
Merge pull request #5207 from indel-ag/noulong
Browse files Browse the repository at this point in the history
Fix compile error on macOS: unknown type name 'ulong'
  • Loading branch information
ksmurchison authored Feb 19, 2025
2 parents cf6e6c5 + 0153185 commit c22bbf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion imap/http_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct body_t {
unsigned char framing; /* Message framing */
unsigned char te; /* Transfer-Encoding */
unsigned max; /* Max allowed len */
ulong len; /* Content-Length */
unsigned long len; /* Content-Length */
struct buf payload; /* Payload */
};

Expand Down
2 changes: 1 addition & 1 deletion imap/httpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ typedef int (*encode_proc_t)(struct transaction_t *txn,

/* Meta-data for response body (payload & representation headers) */
struct resp_body_t {
ulong len; /* Content-Length */
unsigned long len; /* Content-Length */
struct range *range; /* Content-Range */
struct {
const char *fname;
Expand Down
2 changes: 1 addition & 1 deletion imap/jmap_mail_submission.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static int _emailsubmission_address_parse(json_t *addr,
if (holduntil) {
if (!strcasecmp(key, "HOLDFOR")) {
char *endptr = (char *) val;
ulong interval = val ? strtoul(val, &endptr, 10) : ULONG_MAX;
unsigned long interval = val ? strtoul(val, &endptr, 10) : ULONG_MAX;
time_t now = time(0);

if (endptr == val || *endptr != '\0' ||
Expand Down

0 comments on commit c22bbf5

Please sign in to comment.