#include <fcntl.h>
#include <getopt.h>
#include <sys/ioctl.h>
+#include <linux/limits.h>
#include <linux/input.h>
const struct key* lookup_key (const char *str, unsigned int len);
{
static char result[PATH_MAX];
- /* If keymap file is given without a path, assume udev diretory; must end with '/' * */
+ /* If keymap file is given without a path, assume udev directory; must end with '/' * */
if (!strchr(path, '/')) {
snprintf(result, sizeof(result), "%s%s", LIBEXECDIR "/keymaps/", path);
return result;