Look for sys/termios.h - needed for TIOCGWINSZ on some systtems.

This commit is contained in:
Dianne Skoll
2025-10-12 20:43:41 -04:00
parent 2dc5a7776d
commit cab749b651
5 changed files with 15 additions and 1 deletions

View File

@@ -66,6 +66,9 @@
/* Define to 1 if you have the <sys/inotify.h> header file. */
#undef HAVE_SYS_INOTIFY_H
/* Define to 1 if you have the <sys/termios.h> header file. */
#undef HAVE_SYS_TERMIOS_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H

View File

@@ -28,6 +28,10 @@
#include <strings.h>
#endif
#ifdef HAVE_SYS_TERMIOS_H
#include <sys/termios.h>
#endif
#include <ctype.h>
#include <math.h>
#include <sys/ioctl.h>

View File

@@ -35,6 +35,11 @@
#include <grp.h>
#endif
#ifdef HAVE_SYS_TERMIOS_H
#include <sys/termios.h>
#endif
#include "types.h"
#include "globals.h"
#include "protos.h"