diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2024-08-01 22:03:58 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2024-08-04 12:00:46 +0000 |
commit | 0d369b8db5b784b91280fb42cd41dbc4a8fcecbc (patch) | |
tree | c0cfded93c1a8c445bec4d775cc9d4dcc21335cd /science | |
parent | ea638cbdd5f2df31120df63b59b4bf91865e59cd (diff) |
science/orthanc: fix build on 32-bits
/wrkdirs/usr/ports/science/orthanc/work/Orthanc-1.12.3/OrthancFramework/Sources/Images/JpegWriter.cpp:199:5: error: no matching function for call to 'jpeg_mem_dest'
199 | jpeg_mem_dest(&cinfo, &data, &size);
| ^~~~~~~~~~~~~
/usr/local/include/jpeglib.h:974:14: note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned int *') to 'unsigned long *' for 3rd argument
974 | EXTERN(void) jpeg_mem_dest(j_compress_ptr cinfo, unsigned char **outbuffer,
| ^
975 | unsigned long *outsize);
| ~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Diffstat (limited to 'science')
-rw-r--r-- | science/orthanc/files/patch-OrthancFramework_Sources_Images_JpegWriter.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/science/orthanc/files/patch-OrthancFramework_Sources_Images_JpegWriter.cpp b/science/orthanc/files/patch-OrthancFramework_Sources_Images_JpegWriter.cpp new file mode 100644 index 000000000000..83ca26cff878 --- /dev/null +++ b/science/orthanc/files/patch-OrthancFramework_Sources_Images_JpegWriter.cpp @@ -0,0 +1,11 @@ +--- OrthancFramework/Sources/Images/JpegWriter.cpp.orig 2024-08-01 21:59:25 UTC ++++ OrthancFramework/Sources/Images/JpegWriter.cpp +@@ -177,7 +177,7 @@ namespace Orthanc + Internals::JpegErrorManager jerr; + + unsigned char* data = NULL; +- size_t size; ++ unsigned long size; + + if (setjmp(jerr.GetJumpBuffer())) + { |