Skip to content
Snippets Groups Projects
Commit 09ec3779 authored by Rosen Penev's avatar Rosen Penev Committed by Hans Verkuil
Browse files

v4l-utils: fix formats under alpha/ppc64/mips64


Unlike libc, kernel headers use long long for 64-bit types.
__SANE_USERSPACE_TYPES__ needs to be defined for the exceptions.

Fixes -Wformat warnings about llu being used instead of lu.

Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 8818d305
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,12 @@ elif host_machine.system() == 'freebsd' ...@@ -69,6 +69,12 @@ elif host_machine.system() == 'freebsd'
v4l2_utils_incdir_arr += 'contrib/freebsd/include' v4l2_utils_incdir_arr += 'contrib/freebsd/include'
endif endif
# These platforms default to __[us]64 as long. Add this define to get long long
# as is done elsewhere.
if host_machine.cpu_family() in ['alpha', 'mips64', 'ppc64']
add_project_arguments('-D__SANE_USERSPACE_TYPES__', language: ['c', 'cpp'])
endif
v4l2_utils_incdir = include_directories(v4l2_utils_incdir_arr) v4l2_utils_incdir = include_directories(v4l2_utils_incdir_arr)
prog_bash = find_program('bash') prog_bash = find_program('bash')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment