From 7f0d4d56a2f1ed34c3da4501e65fb79497b3dda1 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Mon, 10 Oct 2016 17:54:24 -0300 Subject: lib/crc32: prefix public functions Make the publicly-visible crc32 library functions prefixed by ul_, such as crc32() -> ul_crc32(). This is because it clashes with the crc32() function from zlib. For newer versions of glib (2.50+) zlib and libblkid are required dependencies and otherwise results in build failure when building statically. Signed-off-by: Gustavo Zacarias --- libfdisk/src/gpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libfdisk') diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index 837719258..208699bfc 100644 --- a/libfdisk/src/gpt.c +++ b/libfdisk/src/gpt.c @@ -850,7 +850,7 @@ fail: static inline uint32_t count_crc32(const unsigned char *buf, size_t len, size_t ex_off, size_t ex_len) { - return (crc32_exclude_offset(~0L, buf, len, ex_off, ex_len) ^ ~0L); + return (ul_crc32_exclude_offset(~0L, buf, len, ex_off, ex_len) ^ ~0L); } static inline uint32_t gpt_header_count_crc32(struct gpt_header *header) -- cgit v1.2.3-55-g7522