libv4l/ir-ctl: fix musl compile
authorPeter Seiderer <ps.report@gmx.net>
Tue, 14 Feb 2017 20:34:50 +0000 (21:34 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 14 Feb 2017 21:34:14 +0000 (22:34 +0100)
commit41d8daa7e94c1b6a86c4d0cd50e712698c2c4571
tree79de7a006fa245365893e36f1d1c5223eefe15aa
parentb6ae70eba239054052da977920462f8bb40f3965
libv4l/ir-ctl: fix musl compile

- add copy of TEMP_FAILURE_RETRY macro
- use strdup instead of strdupa

Fixes [1]:

  ir-ctl.c:(.text+0xb06): undefined reference to `strndupa'
  ir-ctl.c:(.text+0xe01): undefined reference to `TEMP_FAILURE_RETRY'

[1] http://autobuild.buildroot.net/results/b8b96c7bbf2147dacac62485cbfdbcfd758271a5

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libv4l/0002-ir-ctl-fixes-for-musl-compile.patch [new file with mode: 0644]