$OpenBSD: patch-src_utils_cdk_zlibstubs_c,v 1.1 2015/12/23 14:46:06 dcoppa Exp $

commit cca5f2d631c790ffc79e7533653315c8acb85875
Author: Christopher Meng <i@cicku.me>
Date:   Thu Mar 5 07:41:14 2015 -0500

Fix compilation errors with gcc5

--- src/utils/cdk/zlibstubs.c.orig	Wed Dec 23 14:52:36 2015
+++ src/utils/cdk/zlibstubs.c	Wed Dec 23 14:52:55 2015
@@ -33,6 +33,7 @@ Boston, MA  02110-1301, USA.
 
 #include "../../../config/config.h"
 
+#include <stdint.h>
 #include <zlib.h>
 
 #ifdef USE_BZIP2
@@ -191,7 +192,7 @@ value camlzip_inflateEnd(value vzs)
 
 value camlzip_update_crc32(value crc, value buf, value pos, value len)
 {
-  return copy_int32(crc32((uint32) Int32_val(crc), 
+  return copy_int32(crc32((uint32_t) Int32_val(crc),
                           &Byte_u(buf, Long_val(pos)),
                           Long_val(len)));
 }
