diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-05-29 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-05-29 08:00:00 +0000 |
commit | 3be556151e45ed69761854d19aa509789150fe06 (patch) | |
tree | 63383951ac4e12b5d4528297b918837e38a3276d /maint/ioctls_sym.sh | |
parent | adb55b1deaa546e00a39345052ba1199c018989c (diff) | |
download | strace-3be556151e45ed69761854d19aa509789150fe06.tar.gz |
maint: force time64 based definitions in linux/videodev2.h
Starting with commit v5.6-rc1~93^2~103, linux/videodev2.h provides either
time32 or time64 based definitions depending on the flavour provided by
libc headers. While media/v4l2-ioctl.h already provides time32 based
definitions, linux/videodev2.h has to be twisted to force time64 based
definitions.
* maint/ioctls_sym.sh: Edit linux/videodev2.h to force time64 based API.
Diffstat (limited to 'maint/ioctls_sym.sh')
-rwxr-xr-x | maint/ioctls_sym.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/maint/ioctls_sym.sh b/maint/ioctls_sym.sh index cc17da790..7cbf98639 100755 --- a/maint/ioctls_sym.sh +++ b/maint/ioctls_sym.sh @@ -364,6 +364,12 @@ s/^\([[:space:]]\+[^),]\+)\),$/\1/' >> "$tmpdir/$f" # Create the file it attempts to include. touch "$tmpdir/asm/bug.h" ;; + *linux/videodev2.h) + # Force time64 based definitions. + sed -e 's/__KERNEL__/__linux__/' \ + -e 's/linux\/types\.h/linux\/time_types.h/' \ + < "$s" > "$tmpdir/$f" + ;; *linux/vmw_vmci_defs.h) # Fetch ioctl macros only. grep "${r_define}I" < "$s" > "$tmpdir/$f" |