Fix building with gcc 15. This resolves issue #578

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/579/head
Michele Calgaro 8 months ago
parent a0ec16b243
commit e308851402
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -592,7 +592,7 @@ processCtrl( const char *string, int len, int fd, struct display *d )
} else if (fd >= 0 && !strcmp( ar[0], "activevt" )) { } else if (fd >= 0 && !strcmp( ar[0], "activevt" )) {
#ifdef HAVE_VTS #ifdef HAVE_VTS
Reply( "ok" ); Reply( "ok" );
int vt_fd = getfd(NULL); int vt_fd = getfd();
if (vt_fd > 0) { if (vt_fd > 0) {
struct vt_stat vtstat; struct vt_stat vtstat;
if (!ioctl(vt_fd, VT_GETSTATE, &vtstat)) { if (!ioctl(vt_fd, VT_GETSTATE, &vtstat)) {

Loading…
Cancel
Save