From cdbf414f2d23471ed2c84b0c44b055a3c34cb4f7 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Thu, 1 Aug 2019 15:09:27 +0200 Subject: HACK: Make it compile with bionic Signed-off-by: Denis 'GNUtoo' Carikli --- evtest.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/evtest.c b/evtest.c index d32337b..e1ac76a 100644 --- a/evtest.c +++ b/evtest.c @@ -103,6 +103,10 @@ static const struct query_mode { static int grab_flag = 0; static volatile sig_atomic_t stop = 0; +#ifndef program_invocation_short_name +static char* program_invocation_short_name = "evtest"; +#endif + static void interrupt_handler(int sig) { stop = 1; @@ -871,7 +875,8 @@ static char* scan_devices(void) char *filename; int max_device = 0; - ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, versionsort); + ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, alphasort); + if (ndev <= 0) return NULL; -- cgit v1.2.3