pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/nbsed/files Include <termios.h> for winsize d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9265b2ab8957
branches:  trunk
changeset: 479773:9265b2ab8957
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Aug 22 05:51:55 2004 +0000

description:
Include <termios.h> for winsize declaration and TIOCGWINSZ.  Should fix
build on Solaris.

diffstat:

 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(-)

diffs (83 lines):

diff -r 29cc74319727 -r 9265b2ab8957 textproc/nbsed/files/config.h.in
--- a/textproc/nbsed/files/config.h.in  Sun Aug 22 05:02:49 2004 +0000
+++ b/textproc/nbsed/files/config.h.in  Sun Aug 22 05:51:55 2004 +0000
@@ -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 -r 29cc74319727 -r 9265b2ab8957 textproc/nbsed/files/configure
--- a/textproc/nbsed/files/configure    Sun Aug 22 05:02:49 2004 +0000
+++ b/textproc/nbsed/files/configure    Sun Aug 22 05:51:55 2004 +0000
@@ -2998,7 +2998,8 @@
 
 
 
-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 @@
 
 
 
-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 -r 29cc74319727 -r 9265b2ab8957 textproc/nbsed/files/configure.ac
--- a/textproc/nbsed/files/configure.ac Sun Aug 22 05:02:49 2004 +0000
+++ b/textproc/nbsed/files/configure.ac Sun Aug 22 05:51:55 2004 +0000
@@ -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@localhost])
@@ -24,8 +24,8 @@
 
 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 -r 29cc74319727 -r 9265b2ab8957 textproc/nbsed/files/process.c
--- a/textproc/nbsed/files/process.c    Sun Aug 22 05:02:49 2004 +0000
+++ b/textproc/nbsed/files/process.c    Sun Aug 22 05:51:55 2004 +0000
@@ -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 @@
 #if HAVE_STRING_H
 #include <string.h>
 #endif
+#if HAVE_TERMIOS_H
+#include <termios.h>
+#endif
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif



Home | Main Index | Thread Index | Old Index