mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 18:02:57 +02:00
libgphoto2: fix build: jpeg_mem_src prototype
The locally defined prototype for jpeg_mem_src() was different from the on defined in /usr/include/jpeglib.h
This commit is contained in:
parent
77e4a2f7e9
commit
877453059c
2 changed files with 23 additions and 1 deletions
22
srcpkgs/libgphoto2/patches/fix-jpeg_mem_src.patch
Normal file
22
srcpkgs/libgphoto2/patches/fix-jpeg_mem_src.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
--- camlibs/ax203/jpeg_memsrcdest.h 2015-08-08 17:57:29.000000000 +0200
|
||||||
|
+++ camlibs/ax203/jpeg_memsrcdest.h 2016-06-16 10:41:12.793951660 +0200
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
#include <jpeglib.h>
|
||||||
|
|
||||||
|
void
|
||||||
|
-jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer,
|
||||||
|
+jpeg_mem_src (j_decompress_ptr cinfo, const unsigned char * buffer,
|
||||||
|
unsigned long bufsize);
|
||||||
|
|
||||||
|
void
|
||||||
|
--- camlibs/jl2005c/jpeg_memsrcdest.h 2015-08-08 17:57:29.000000000 +0200
|
||||||
|
+++ camlibs/jl2005c/jpeg_memsrcdest.h 2016-06-16 10:41:12.793951660 +0200
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
#include <jpeglib.h>
|
||||||
|
|
||||||
|
void
|
||||||
|
-jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer,
|
||||||
|
+jpeg_mem_src (j_decompress_ptr cinfo, const unsigned char * buffer,
|
||||||
|
unsigned long bufsize);
|
||||||
|
|
||||||
|
void
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libgphoto2'
|
# Template file for 'libgphoto2'
|
||||||
pkgname=libgphoto2
|
pkgname=libgphoto2
|
||||||
version=2.5.10
|
version=2.5.10
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --disable-rpath udevscriptdir=/usr/lib/udev"
|
configure_args="--disable-static --disable-rpath udevscriptdir=/usr/lib/udev"
|
||||||
hostmakedepends="automake libtool pkg-config gettext-devel"
|
hostmakedepends="automake libtool pkg-config gettext-devel"
|
||||||
|
|
Loading…
Add table
Reference in a new issue