diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-12-31 01:33:09 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-12-31 01:33:09 +0000 |
commit | 02eb878f5d1b326f3d62fed11480fd2b87b2b235 (patch) | |
tree | b3cea0bfb795c0da6dfd2f816a5d8b6927fff5a3 /multimedia/libv4l | |
parent | 4b04575c4f089d08184cab846bcdd5e058a53b32 (diff) | |
download | ports-02eb878f5d1b326f3d62fed11480fd2b87b2b235.tar.gz ports-02eb878f5d1b326f3d62fed11480fd2b87b2b235.zip |
multimedia/libv4l: fix build on big-endian architectures
Include sys/endian.h:
v4l2-ctl-vidcap.cpp:378:38: error: 'le16toh' was not declared in this scope
Notes
Notes:
svn path=/head/; revision=559701
Diffstat (limited to 'multimedia/libv4l')
-rw-r--r-- | multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-vidcap.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-vidcap.cpp b/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-vidcap.cpp new file mode 100644 index 000000000000..45ebb263c0ab --- /dev/null +++ b/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-vidcap.cpp @@ -0,0 +1,10 @@ +--- utils/v4l2-ctl/v4l2-ctl-vidcap.cpp.orig 2020-12-30 21:13:40 UTC ++++ utils/v4l2-ctl/v4l2-ctl-vidcap.cpp +@@ -14,6 +14,7 @@ + #include <dirent.h> + #include <math.h> + #include <cstdlib> ++#include <sys/endian.h> + + #include "v4l2-ctl.h" + |