aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-08-10 08:53:38 +1000
committerGravatar axel <axel@liljencrantz.se>2006-08-10 08:53:38 +1000
commit41f8007a0369e57f24e3c50ff91bb6e23805bfba (patch)
treee77f1f9386da5eb5671fd72882b4d3c659892d95 /proc.c
parent8207030b21555c90cd286c7de3a11b5346c86d95 (diff)
More header/autoconf fixes, improve winsize checking
darcs-hash:20060809225338-ac50b-7162a690e44e2272f4760723f5bf8cc135dc5952.gz
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index b76fd069..4ea9802e 100644
--- a/proc.c
+++ b/proc.c
@@ -20,7 +20,15 @@ Some of the code in this file is based on code from the Glibc manual.
#include <termios.h>
#include <sys/types.h>
#include <sys/stat.h>
+
+#ifdef HAVE_SYS_TERMIOS_H
+#include <sys/termios.h>
+#endif
+
+#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
+#endif
+
#include <unistd.h>
#include <signal.h>
#include <dirent.h>