--- a/evtest.c 2022-05-18 18:52:49.000000000 +0000 +++ b/evtest.c 2022-05-20 09:29:18.153910366 +0000 @@ -57,6 +57,9 @@ #include #include #include +#ifndef PATH_MAX +#include /* for PATH_MAX */ +#endif #ifndef input_event_sec #define input_event_sec time.tv_sec