From 6698a8028756a1c8fd404a2efef902ca989b178d Mon Sep 17 00:00:00 2001 From: jlam Date: Sun, 22 Aug 2004 05:51:55 +0000 Subject: Include for winsize declaration and TIOCGWINSZ. Should fix build on Solaris. --- textproc/nbsed/files/config.h.in | 3 +++ textproc/nbsed/files/configure | 5 +++-- textproc/nbsed/files/configure.ac | 6 +++--- textproc/nbsed/files/process.c | 7 +++++-- 4 files changed, 14 insertions(+), 7 deletions(-) (limited to 'textproc') diff --git a/textproc/nbsed/files/config.h.in b/textproc/nbsed/files/config.h.in index c664719a2ad..23113fd2f76 100644 --- a/textproc/nbsed/files/config.h.in +++ b/textproc/nbsed/files/config.h.in @@ -100,6 +100,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_UIO_H +/* Define to 1 if you have the header file. */ +#undef HAVE_TERMIOS_H + /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H diff --git a/textproc/nbsed/files/configure b/textproc/nbsed/files/configure index 36ee656a647..6bfa3e04279 100755 --- a/textproc/nbsed/files/configure +++ b/textproc/nbsed/files/configure @@ -2998,7 +2998,8 @@ done -for ac_header in ctype.h err.h errno.h fcntl.h limits.h regex.h + +for ac_header in ctype.h err.h errno.h fcntl.h limits.h regex.h stdarg.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -3153,7 +3154,7 @@ done -for ac_header in stdarg.h stddef.h stdio.h stdlib.h string.h unistd.h +for ac_header in stddef.h stdio.h stdlib.h string.h termios.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then diff --git a/textproc/nbsed/files/configure.ac b/textproc/nbsed/files/configure.ac index 407c7693977..d2afb8c905c 100644 --- a/textproc/nbsed/files/configure.ac +++ b/textproc/nbsed/files/configure.ac @@ -1,4 +1,4 @@ -dnl $Id: configure.ac,v 1.5 2004/08/21 08:39:54 jlam Exp $ +dnl $Id: configure.ac,v 1.6 2004/08/22 05:51:55 jlam Exp $ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) AC_INIT([nbsed],[20040821],[agc@NetBSD.org]) @@ -24,8 +24,8 @@ AC_SUBST(AUTOHEADER) dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS([ctype.h err.h errno.h fcntl.h limits.h regex.h]) -AC_CHECK_HEADERS([stdarg.h stddef.h stdio.h stdlib.h string.h unistd.h]) +AC_CHECK_HEADERS([ctype.h err.h errno.h fcntl.h limits.h regex.h stdarg.h]) +AC_CHECK_HEADERS([stddef.h stdio.h stdlib.h string.h termios.h unistd.h]) AC_CHECK_HEADERS([sys/cdefs.h sys/ioctl.h sys/stat.h sys/types.h sys/uio.h]) dnl Check for functions diff --git a/textproc/nbsed/files/process.c b/textproc/nbsed/files/process.c index bac6742c666..3ade9682583 100644 --- a/textproc/nbsed/files/process.c +++ b/textproc/nbsed/files/process.c @@ -1,4 +1,4 @@ -/* $NetBSD: process.c,v 1.7 2004/08/21 08:39:54 jlam Exp $ */ +/* $NetBSD: process.c,v 1.8 2004/08/22 05:51:55 jlam Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -78,7 +78,7 @@ #if 0 static char sccsid[] = "@(#)process.c 8.6 (Berkeley) 4/20/94"; #else -__RCSID("$NetBSD: process.c,v 1.7 2004/08/21 08:39:54 jlam Exp $"); +__RCSID("$NetBSD: process.c,v 1.8 2004/08/22 05:51:55 jlam Exp $"); #endif #endif /* not lint */ @@ -119,6 +119,9 @@ __RCSID("$NetBSD: process.c,v 1.7 2004/08/21 08:39:54 jlam Exp $"); #if HAVE_STRING_H #include #endif +#if HAVE_TERMIOS_H +#include +#endif #if HAVE_UNISTD_H #include #endif -- cgit v1.2.3