Skip to content

Commit

Permalink
Fix unknown type name ‘z_crc_t’ when compiling with old versions of zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
veon82 committed May 5, 2018
1 parent 7738145 commit fd4b165
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/crypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

#define CRC32(c, b) ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8))

/* the following typedef fixes compile error "unknown type name ‘z_crc_t’" on
old versions of zlib */
typedef unsigned long z_crc_t;

/***********************************************************************
* Return the next byte in the pseudo-random sequence
*/
Expand Down

0 comments on commit fd4b165

Please sign in to comment.