media-libs/libbpg: fix implicit declaration of string function

The patch has not yet upstreamed.

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2023-09-18 00:00:40 +02:00
parent 772108d69d
commit 8b8998ecfc
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
The strrchr function prototype may have been provided transitively in the past.
Not yet upstreamed as of 2023-09-17.
Author: Lucio Sauer <watermanpaint@posteo.net>
--- a/bpgdec.c
+++ b/bpgdec.c
@@ -33,6 +33,7 @@
#ifdef USE_PNG
#include <png.h>
+#include <string.h>
#endif
#include "libbpg.h"

View File

@@ -37,6 +37,7 @@ PATCHES=(
"${FILESDIR}"/${P}-add-fpic.patch
"${FILESDIR}"/${P}-backport-GNU-stack-note-fix.patch
"${FILESDIR}"/${P}-dont-strip-bins.patch
"${FILESDIR}"/${P}-fix-implicit-declaration.patch
"${FILESDIR}"/${P}-remove-forced-options.patch
"${FILESDIR}"/${P}-remove-unused-cmake-var.patch
"${FILESDIR}"/${P}-respect-compiler-driver.patch