From 5a9918a2f1acf8f35b3a2683591c57fe7c2b52e2 Mon Sep 17 00:00:00 2001 From: kkl Date: Fri, 18 Sep 2020 07:03:39 +0200 Subject: [PATCH] error message without errnofor input device on RPI to prevent from including additional header --- src/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 2f0c9dea3..97b2b049f 100644 --- a/src/core.c +++ b/src/core.c @@ -158,7 +158,6 @@ #include // Required for: strrchr(), strcmp(), strlen() #include // Required for: time() [Used in InitTimer()] #include // Required for: tan() [Used in BeginMode3D()] -#include #include // Required for: stat() [Used in GetFileModTime()] @@ -4603,7 +4602,7 @@ static void EventThreadSpawn(char *device) fd = open(device, O_RDONLY | O_NONBLOCK); if (fd < 0) { - TRACELOG(LOG_WARNING, "RPI: Failed to open input device %s (error: %d)", device, errno); + TRACELOG(LOG_WARNING, "RPI: Failed to open input device %s", device); return; } worker->fd = fd;