SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
24
graphics/sane-backends/patches/patch-backend_v4l_c
Normal file
24
graphics/sane-backends/patches/patch-backend_v4l_c
Normal file
|
@ -0,0 +1,24 @@
|
|||
error: '__u32' undeclared (first use in this function)
|
||||
|
||||
Index: backend/v4l.c
|
||||
--- backend/v4l.c.orig
|
||||
+++ backend/v4l.c
|
||||
@@ -59,6 +59,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
+#include <stdint.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include <unistd.h>
|
||||
@@ -83,6 +84,10 @@
|
||||
|
||||
#include <libv4l1.h>
|
||||
#include "v4l.h"
|
||||
+
|
||||
+#if !defined(__linux__)
|
||||
+typedef uint32_t __u32;
|
||||
+#endif
|
||||
|
||||
static const SANE_Device **devlist = NULL;
|
||||
static int num_devices;
|
Loading…
Add table
Add a link
Reference in a new issue