Skip to content

Commit

Permalink
imap: fix compile error on macOS: unknown type name 'ulong'
Browse files Browse the repository at this point in the history
This appears to be a Linux-specific thing, coming from /usr/include/x86_64-linux-gnu/sys/types.h:

  #ifdef __USE_MISC
  /* Old compatibility names for C types.  */
  typedef unsigned long int ulong;

Signed-off-by: Christian Walther <[email protected]>
  • Loading branch information
cwalther committed Jan 9, 2025
1 parent 7fb63d6 commit 1378c90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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

0 comments on commit 1378c90

Please sign in to comment.