Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit delete defined(sun), it could be invaded in the ...
details: https://anonhg.NetBSD.org/src/rev/e534f05eec84
branches: trunk
changeset: 747057:e534f05eec84
user: christos <christos%NetBSD.org@localhost>
date: Mon Aug 31 00:05:43 2009 +0000
description:
delete defined(sun), it could be invaded in the user namespace. Suggested
by mrg@
diffstat:
lib/libedit/readline/readline.h | 4 ++--
lib/libedit/sys.h | 4 ++--
lib/libedit/term.c | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 1b9ab52af6f0 -r e534f05eec84 lib/libedit/readline/readline.h
--- a/lib/libedit/readline/readline.h Sun Aug 30 22:30:30 2009 +0000
+++ b/lib/libedit/readline/readline.h Mon Aug 31 00:05:43 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: readline.h,v 1.28 2009/08/30 15:41:05 christos Exp $ */
+/* $NetBSD: readline.h,v 1.29 2009/08/31 00:05:43 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#ifndef CTRL
#include <sys/ioctl.h>
-#if !defined(sun) && !defined(__sun) && !defined(__hpux) && !defined(_AIX)
+#if !defined(__sun) && !defined(__hpux) && !defined(_AIX)
#include <sys/ttydefaults.h>
#endif
#ifndef CTRL
diff -r 1b9ab52af6f0 -r e534f05eec84 lib/libedit/sys.h
--- a/lib/libedit/sys.h Sun Aug 30 22:30:30 2009 +0000
+++ b/lib/libedit/sys.h Mon Aug 31 00:05:43 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys.h,v 1.11 2009/08/30 15:41:05 christos Exp $ */
+/* $NetBSD: sys.h,v 1.12 2009/08/31 00:05:43 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -101,7 +101,7 @@
#define REGEX /* Use POSIX.2 regular expression functions */
#undef REGEXP /* Use UNIX V8 regular expression functions */
-#if defined(sun) || defined(__sun)
+#if defined(__sun)
extern int tgetent(char *, const char *);
extern int tgetflag(char *);
extern int tgetnum(char *);
diff -r 1b9ab52af6f0 -r e534f05eec84 lib/libedit/term.c
--- a/lib/libedit/term.c Sun Aug 30 22:30:30 2009 +0000
+++ b/lib/libedit/term.c Mon Aug 31 00:05:43 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: term.c,v 1.54 2009/08/30 15:41:05 christos Exp $ */
+/* $NetBSD: term.c,v 1.55 2009/08/31 00:05:43 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)term.c 8.2 (Berkeley) 4/30/95";
#else
-__RCSID("$NetBSD: term.c,v 1.54 2009/08/30 15:41:05 christos Exp $");
+__RCSID("$NetBSD: term.c,v 1.55 2009/08/31 00:05:43 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -61,7 +61,7 @@
#endif
/* Solaris's term.h does horrid things. */
-#if defined(HAVE_TERM_H) && !defined(sun) && !defined(__sun)
+#if defined(HAVE_TERM_H) && !defined(__sun)
#include <term.h>
#endif
#include <sys/types.h>
Home |
Main Index |
Thread Index |
Old Index