forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-perl/Digest-Nilsimsa: fix build w/ clang 16
Closes: https://bugs.gentoo.org/870895 Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
5b86df4
commit b629893
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
dev-perl/Digest-Nilsimsa/files/Digest-Nilsimsa-0.60.0-clang16.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
https://bugs.gentoo.org/870895 | ||
https://rt.cpan.org/Public/Bug/Display.html?id=145874 | ||
|
||
Add missing function prototypes. This avoids implicit function | ||
declarations when building Nilsimsa.xs and build failures with future | ||
compilers. | ||
|
||
--- a/nilsimsa.h | ||
+++ b/nilsimsa.h | ||
@@ -47,6 +47,8 @@ int nilsimsa(struct nsrecord *a,struct nsrecord *b); | ||
void aggregate(int n); | ||
void codetostr(struct nsrecord *a,char *str); | ||
int strtocode(char *str,struct nsrecord *a); | ||
+void makecode(struct nsrecord *a); | ||
+void clear(struct nsrecord *a); | ||
|
||
int accbuf(unsigned char *buf,int len,struct nsrecord *a); | ||
void dprint(char *msg); | ||
|