commit 6f1e72f
chld
·
2026-04-28 17:40:23 +0000 UTC
parent 49ebfc3
strerr -> strerror, add a more defined if guard to fix build failure on freebsd
1 files changed,
+2,
-2
+2,
-2
1@@ -272,7 +272,7 @@ handle_socket_data(int socket)
2 */
3 if (ioctl(fd, EVIOCGRAB, (void*)1) == -1)
4 {
5- fprintf(stderr, "EVIOCGRAB %s: %s", path, strerr(errno));
6+ fprintf(stderr, "EVIOCGRAB %s: %s", path, strerror(errno));
7 goto fail;
8 }
9 #endif
10@@ -471,7 +471,7 @@ setup_tty(int fd)
11 goto error0;
12 }
13
14-#ifndef __OpenBSD__
15+#if !defined (__OpenBSD__) && !defined (__FreeBSD__)
16 if (ioctl(fd, VT_SETMODE, &mode) == -1) {
17 perror("failed to set VT mode");
18 goto error1;