[cddl] Fix lz4 function definitions to not tri pup compile.

This tripped up in llvm compilation on amd64 noting that lz4_init/lz4_fini
were lacking in being previously defined.

Reviewed by:	emaste, freqlabs, brooks
Differential Revision:	https://reviews.freebsd.org/D27240
This commit is contained in:
Adrian Chadd 2020-11-17 17:11:07 +00:00
parent c2364e5a41
commit 975e1c1ce6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367770
2 changed files with 7 additions and 2 deletions

View file

@ -1024,7 +1024,7 @@ LZ4_uncompress_unknownOutputSize(const char *source, char *dest, int isize,
}
#if defined(_KERNEL) || defined(_FAKE_KERNEL)
extern void
void
lz4_init(void)
{
@ -1034,7 +1034,7 @@ lz4_init(void)
#endif
}
extern void
void
lz4_fini(void)
{

View file

@ -43,6 +43,11 @@ extern "C" {
extern size_t lz4_compress(void *, void *, size_t, size_t, int);
extern int lz4_decompress(void *, void *, size_t, size_t, int);
#if defined(_KERNEL) || defined(_FAKE_KERNEL)
extern void lz4_init(void);
extern void lz4_fini(void);
#endif
#ifdef __cplusplus
}
#endif