aboutsummaryrefslogtreecommitdiff
path: root/graphics/sane-backends/files
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2006-09-26 12:35:08 +0000
committerRong-En Fan <rafan@FreeBSD.org>2006-09-26 12:35:08 +0000
commit41fe520ac03370a8a42d9780cee3ca3bad8c5e1a (patch)
tree6768ea4d2039c7241a39840c66a25c3a495c0532 /graphics/sane-backends/files
parentee86655b4b62ef1bc20e38e234b170b8e98e15ae (diff)
Notes
Diffstat (limited to 'graphics/sane-backends/files')
-rw-r--r--graphics/sane-backends/files/patch-backend__dell1600n_net.c20
-rw-r--r--graphics/sane-backends/files/patch-backend__pixma.h20
2 files changed, 40 insertions, 0 deletions
diff --git a/graphics/sane-backends/files/patch-backend__dell1600n_net.c b/graphics/sane-backends/files/patch-backend__dell1600n_net.c
new file mode 100644
index 000000000000..2446295533dd
--- /dev/null
+++ b/graphics/sane-backends/files/patch-backend__dell1600n_net.c
@@ -0,0 +1,20 @@
+--- backend/dell1600n_net.c.orig Tue Jun 20 06:07:52 2006
++++ backend/dell1600n_net.c Fri Sep 15 01:42:26 2006
+@@ -73,6 +73,8 @@
+ #include <netinet/in.h>
+ #include <netdb.h>
+
++#include <sys/time.h>
++
+ #include <jpeglib.h>
+ #include <tiffio.h>
+
+@@ -1762,7 +1764,7 @@
+ ProcessPageData (struct ScannerState *pState)
+ {
+
+- char tempFilename[TMP_MAX] = "scan.dat";
++ char tempFilename[L_tmpnam] = "scan.dat";
+ FILE *fTmp;
+ int fdTmp;
+ struct jpeg_source_mgr jpegSrcMgr;
diff --git a/graphics/sane-backends/files/patch-backend__pixma.h b/graphics/sane-backends/files/patch-backend__pixma.h
new file mode 100644
index 000000000000..0a76076887dd
--- /dev/null
+++ b/graphics/sane-backends/files/patch-backend__pixma.h
@@ -0,0 +1,20 @@
+--- backend/pixma.h.orig Mon Jun 12 05:56:42 2006
++++ backend/pixma.h Fri Sep 15 01:11:40 2006
+@@ -104,14 +104,14 @@
+
+ #include <errno.h>
+
+-#ifdef HAVE_STDINT_H
+-# include <stdint.h> /* available in ISO C99 */
++#ifdef HAVE_INTTYPES_H
++# include <inttypes.h>
+ #else
+ # include <sys/types.h>
+ typedef u_int8_t uint8_t;
+ typedef u_int16_t uint16_t;
+ typedef u_int32_t uint32_t;
+-#endif /* HAVE_STDINT_H */
++#endif /* HAVE_INTTYPES_H */
+
+ #ifndef EPROTO
+ # define EPROTO 10000