diff options
Diffstat (limited to '0002-libdroplet.patch')
-rw-r--r-- | 0002-libdroplet.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/0002-libdroplet.patch b/0002-libdroplet.patch new file mode 100644 index 000000000000..9b9dc5cbcc9a --- /dev/null +++ b/0002-libdroplet.patch @@ -0,0 +1,23 @@ +# C99 introduced _Bool but library predates that, fix + +--- core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h 2020-12-16 08:46:16.000000000 +0100 ++++ core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h 2021-01-09 21:50:10.506666487 +0100 +@@ -79,7 +79,6 @@ + #ifndef DONE_STYLE + + typedef unsigned long ulong; +-typedef unsigned bool; + typedef unsigned char* p_ubyte_; + + # ifndef TRUE +@@ -107,8 +107,8 @@ + int cm_width; /* Parameter: Width in bits [8,32]. */ + ulong cm_poly; /* Parameter: The algorithm's polynomial. */ + ulong cm_init; /* Parameter: Initial register value. */ +- bool cm_refin; /* Parameter: Reflect input bytes? */ +- bool cm_refot; /* Parameter: Reflect output CRC? */ ++ _Bool cm_refin; /* Parameter: Reflect input bytes? */ ++ _Bool cm_refot; /* Parameter: Reflect output CRC? */ + ulong cm_xorot; /* Parameter: XOR this to output CRC. */ + + ulong cm_reg; /* Context: Context during execution. */ |