commit 6f1e72fa90daac131177d53b091c6931fdcf6653
parent 49ebfc3ccffc37ccb3289e5886097c19db56fe16
Author: chld <chld@disroot.org>
Date: Tue, 28 Apr 2026 12:40:23 -0500
strerr -> strerror, add a more defined if guard to fix build failure on freebsd
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/launch/launch.c b/launch/launch.c
@@ -272,7 +272,7 @@ handle_socket_data(int socket)
*/
if (ioctl(fd, EVIOCGRAB, (void*)1) == -1)
{
- fprintf(stderr, "EVIOCGRAB %s: %s", path, strerr(errno));
+ fprintf(stderr, "EVIOCGRAB %s: %s", path, strerror(errno));
goto fail;
}
#endif
@@ -471,7 +471,7 @@ setup_tty(int fd)
goto error0;
}
-#ifndef __OpenBSD__
+#if !defined (__OpenBSD__) && !defined (__FreeBSD__)
if (ioctl(fd, VT_SETMODE, &mode) == -1) {
perror("failed to set VT mode");
goto error1;