summaryrefslogtreecommitdiff
path: root/textproc/nbsed
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-08-22 05:51:55 +0000
committerjlam <jlam@pkgsrc.org>2004-08-22 05:51:55 +0000
commitc911e88f6d46153a3e6fd9f5d3977591a1ee5a33 (patch)
tree13acc020da2c664f54533eb2dc044f07b484a6c6 /textproc/nbsed
parentf76fd5562ee74bfcd1b0639d75e75b0a45011501 (diff)
downloadpkgsrc-c911e88f6d46153a3e6fd9f5d3977591a1ee5a33.tar.gz
Include <termios.h> for winsize declaration and TIOCGWINSZ. Should fix
build on Solaris.
Diffstat (limited to 'textproc/nbsed')
-rw-r--r--textproc/nbsed/files/config.h.in3
-rwxr-xr-xtextproc/nbsed/files/configure5
-rw-r--r--textproc/nbsed/files/configure.ac6
-rw-r--r--textproc/nbsed/files/process.c7
4 files changed, 14 insertions, 7 deletions
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 <sys/uio.h> header file. */
#undef HAVE_SYS_UIO_H
+/* Define to 1 if you have the <termios.h> header file. */
+#undef HAVE_TERMIOS_H
+
/* Define to 1 if you have the <unistd.h> 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 <string.h>
#endif
+#if HAVE_TERMIOS_H
+#include <termios.h>
+#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif