freebsd-ports/graphics/sane-backends/files/patch-backend__pieusb_buffer.c
Guido Falsi 0319d39bfb - Update to 1.0.25 [1]
- Add option for v4l [1]
- Use more option helpers [1]
- Removed CUPS option since CUPS requirement has been dropped upstream [1]

While here:

- Convert to USES=localbase
- Regenerate some patches [1]

This version also includes support for Canon LiDE 220 scanners. [2]

PR:		203799 [1], 200788 [2]
Submitted by:	Ports Fury [1], avg@ [2]
2015-10-19 09:03:44 +00:00

24 lines
538 B
C

--- backend/pieusb_buffer.c.orig 2015-09-01 00:31:33 UTC
+++ backend/pieusb_buffer.c
@@ -100,6 +100,12 @@
#include <stdio.h>
#include <fcntl.h>
#include <sys/mman.h>
+
+#ifdef HAVE_SYS_ENDIAN_H
+#include <sys/endian.h>
+#endif
+
+#ifdef HAVE_ENDIAN_H
#include <endian.h>
/* When creating the release backend, make complains about unresolved external
@@ -110,6 +116,8 @@
#define le16toh(x) __bswap_16 (x)
#endif
+#endif
+
static void buffer_update_read_index(struct Pieusb_Read_Buffer* buffer, int increment);
/* READER */