summaryrefslogtreecommitdiffstats
path: root/include/crc32.h
diff options
context:
space:
mode:
authorKarel Zak2013-09-11 14:37:22 +0200
committerKarel Zak2013-09-11 16:40:06 +0200
commitdb2a3dda748cbf06c1129cbb24a003a703c2fa85 (patch)
tree12294d09f98f3474b7dd779882e1e3925bce93e4 /include/crc32.h
parentwipefs: Also wipe superblocks with bad checksums (diff)
downloadkernel-qcow2-util-linux-db2a3dda748cbf06c1129cbb24a003a703c2fa85.tar.gz
kernel-qcow2-util-linux-db2a3dda748cbf06c1129cbb24a003a703c2fa85.tar.xz
kernel-qcow2-util-linux-db2a3dda748cbf06c1129cbb24a003a703c2fa85.zip
lib: add crc64()
Based on bcache code from Rolf Fokkens. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/crc32.h')
-rw-r--r--include/crc32.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crc32.h b/include/crc32.h
index b454be9fc..26169109e 100644
--- a/include/crc32.h
+++ b/include/crc32.h
@@ -1,6 +1,7 @@
#ifndef UL_NG_CRC32_H
#define UL_NG_CRC32_H
+#include <sys/types.h>
#include <stdint.h>
extern uint32_t crc32(uint32_t seed, const unsigned char *buf, size_t len);