mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
[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:
parent
c2364e5a41
commit
975e1c1ce6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367770
|
@ -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)
|
||||
{
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue