fbterm: fix musl compile (missing string.h include)
authorPeter Seiderer <ps.report@gmx.net>
Thu, 18 Feb 2016 21:46:58 +0000 (22:46 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 19 Feb 2016 15:36:56 +0000 (16:36 +0100)
commit806ca1e76784c2796d68eb5d3756d7c44becf5fd
treef14f9ebba70069a3fceefb9e17c191b597f35a12
parent6cd8cbc6fa7aad86a267fac28345ff7236b61233
fbterm: fix musl compile (missing string.h include)

Fixes [1]:

  mouse.cpp: In function 's32 open_gpm(Gpm_Connect*)':
  mouse.cpp:58:37: error: 'memset' was not declared in this scope
    memset((s8 *)&addr, 0, sizeof(addr));
                                     ^
  mouse.cpp:60:64: error: 'strncpy' was not declared in this scope
    strncpy(addr.sun_path, GPM_NODE_CTL, sizeof(addr.sun_path) - 1);

in case BR2_PACKAGE_GPM is defined.

Add proper gpm dependency and configure option too.

[1] http://autobuild.buildroot.net/results/a60/a602d61e68f662217ad868de79711a8ea892a3a9

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/fbterm/0002-mouse.cpp-fix-musl-compile.patch [new file with mode: 0644]
package/fbterm/fbterm.mk