X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=ginge.git;a=blobdiff_plain;f=loader%2Fhost_pnd.c;h=5c79b915f3e07a76e0fca275ccf70ad186a360ce;hp=a3d42152c05602bab1ca52ca05e11219c116fe85;hb=7fd42181a7f66b4403076cd9de98e18140a7eaf8;hpb=dc90c02d39fc8968d2078512e228d99e7c553267 diff --git a/loader/host_pnd.c b/loader/host_pnd.c index a3d4215..5c79b91 100644 --- a/loader/host_pnd.c +++ b/loader/host_pnd.c @@ -11,6 +11,7 @@ #include #include "header.h" +#include "realfuncs.h" static int ifds[2] = { -1, -1 }; static int init_done; @@ -23,7 +24,7 @@ static void init(void) for (ifd = -1, i = 0; ifds[0] == -1 || ifds[1] == -1; i++) { snprintf(buff, sizeof(buff), "/dev/input/event%i", i); - ifd = open(buff, O_RDONLY | O_NONBLOCK); + ifd = open(buff, O_RDONLY | O_NONBLOCK, 0); if (ifd == -1) break;