epson-workforce-635-nx625-series: fix GCC 14 build (#378049)
This commit is contained in:
commit
2b4960c707
@ -0,0 +1,21 @@
|
||||
diff --git a/src/raster_to_epson.c b/src/raster_to_epson.c
|
||||
index 6e621c8..a5ca797 100644
|
||||
--- a/src/raster_to_epson.c
|
||||
+++ b/src/raster_to_epson.c
|
||||
@@ -438,14 +438,14 @@ static int print_page (void)
|
||||
break;
|
||||
}
|
||||
|
||||
- if (eps_raster_print(raster_h, image_raw, pageRegion.bytesPerLine, pageRegion.width, &nraster)) {
|
||||
+ if (eps_raster_print(raster_h, image_raw, pageRegion.bytesPerLine, pageRegion.width, (int *) &nraster)) {
|
||||
error = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// flushing page
|
||||
- eps_raster_print(raster_h, NULL, 0, 0, &nraster);
|
||||
+ eps_raster_print(raster_h, NULL, 0, 0, (int *) &nraster);
|
||||
|
||||
bAbort = (error) ? TRUE : FALSE;
|
||||
if (epcgEndPage (bAbort)) {
|
@ -0,0 +1,24 @@
|
||||
diff --git a/src/pagemanager/pagemanager.c b/src/pagemanager/pagemanager.c
|
||||
index 029e6d3..2881585 100644
|
||||
--- a/src/pagemanager/pagemanager.c
|
||||
+++ b/src/pagemanager/pagemanager.c
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "debuglog.h"
|
||||
#include "memory.h"
|
||||
#include "raster.h"
|
||||
+#include "raster-helper.h"
|
||||
#include "pagemanager.h"
|
||||
|
||||
extern int JobCanceled;
|
||||
diff --git a/src/raster_to_epson.c b/src/raster_to_epson.c
|
||||
index 6e621c8..6eea77c 100644
|
||||
--- a/src/raster_to_epson.c
|
||||
+++ b/src/raster_to_epson.c
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "raster.h"
|
||||
#include "memory.h"
|
||||
#include "raster_to_epson.h"
|
||||
+#include "raster-helper.h"
|
||||
#include "pagemanager.h"
|
||||
#include "filter_option.h"
|
||||
|
@ -44,6 +44,11 @@ stdenv.mkDerivation rec {
|
||||
done
|
||||
'';
|
||||
|
||||
patches = [
|
||||
./eps_raster_print-cast.patch
|
||||
./include-raster-helper.patch
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
chmod u+x configure
|
||||
'';
|
||||
|
Loading…
x
Reference in New Issue
Block a user