From 268e2432c9fce95a332c480f7c598063dad0019a Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 30 Jul 2012 23:43:37 -0700 Subject: [PATCH] Remove src/s/usg5-4-common.h * configure.ac (USG5_4): Reintroduce this. (opsysfile): Set to empty on irix6-5, sol2*, and unixware. * src/conf_post.h [USG5_4]: Move remaining contents of s/usg5-4-common.h here. * src/s/usg5-4-common.h: Remove file. --- ChangeLog | 3 +++ configure.ac | 10 +++++++--- src/ChangeLog | 4 ++++ src/conf_post.h | 16 ++++++++++++++++ src/s/usg5-4-common.h | 35 ----------------------------------- 5 files changed, 30 insertions(+), 38 deletions(-) delete mode 100644 src/s/usg5-4-common.h diff --git a/ChangeLog b/ChangeLog index d919239e05e..d1fe008ccf1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2012-07-31 Glenn Morris + * configure.ac (USG5_4): Reintroduce this. + (opsysfile): Set to empty on irix6-5, sol2*, and unixware. + * configure.ac (wait3, WRETCODE): Move here from src/s/usg5-4-common.h. * configure.ac (opsysfile): Set to empty on hpux*, darwin; diff --git a/configure.ac b/configure.ac index 3007f79a8b6..a5a59f96b17 100644 --- a/configure.ac +++ b/configure.ac @@ -3685,6 +3685,7 @@ AH_TEMPLATE(BSD4_2, [Define if the system is compatible with BSD 4.2.]) AH_TEMPLATE(BSD_SYSTEM, [Define if the system is compatible with BSD 4.2.]) AH_TEMPLATE(USG, [Define if the system is compatible with System III.]) AH_TEMPLATE(USG5, [Define if the system is compatible with System V.]) +AH_TEMPLATE(USG5_4, [Define if the system is compatible with System V Release 4.]) case $opsys in aix4-2) @@ -3748,23 +3749,26 @@ case $opsys in ;; irix6-5) - opsysfile="s/usg5-4-common.h" + opsysfile= AC_DEFINE(USG, []) AC_DEFINE(USG5, []) + AC_DEFINE(USG5_4, []) AC_DEFINE(IRIX6_5, [], [Define if the system is IRIX.]) ;; sol2*) - opsysfile="s/usg5-4-common.h" + opsysfile= AC_DEFINE(USG, []) AC_DEFINE(USG5, []) + AC_DEFINE(USG5_4, []) AC_DEFINE(SOLARIS2, [], [Define if the system is Solaris.]) ;; unixware) - opsysfile="s/usg5-4-common.h" + opsysfile= AC_DEFINE(USG, []) AC_DEFINE(USG5, []) + AC_DEFINE(USG5_4, []) ;; esac diff --git a/src/ChangeLog b/src/ChangeLog index 12afc8d080d..7db89140105 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -10,6 +10,10 @@ * s/usg5-4-common.h (wait3, WRETCODE): Let configure set them. + * conf_post.h [USG5_4]: + Move remaining contents of s/usg5-4-common.h here. + * s/usg5-4-common.h: Remove file. + * conf_post.h [IRIX6_5]: Move remaining contents of s/irix6-5.h here. * s/irix6-5.h: Remove file. diff --git a/src/conf_post.h b/src/conf_post.h index 32fdc899da9..f84d6ae6f42 100644 --- a/src/conf_post.h +++ b/src/conf_post.h @@ -84,7 +84,23 @@ char *_getpty(); #endif #undef SA_RESTART /* not the same as defining BROKEN_SA_RESTART */ +#endif /* IRIX6_5 */ + +#ifdef USG5_4 +/* Get FIONREAD from . Get to get struct tchars. + But get first to make sure ttold.h doesn't interfere. */ +#include + +#ifdef emacs +#include +#include +#include +#include +#include +#include +#include #endif +#endif /* USG5_4 */ /* Define AMPERSAND_FULL_NAME if you use the convention that & in the full name stands for the login id. */ diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h deleted file mode 100644 index 1b545aad1ce..00000000000 --- a/src/s/usg5-4-common.h +++ /dev/null @@ -1,35 +0,0 @@ -/* Definitions file for GNU Emacs running on AT&T's System V Release 4 - -Copyright (C) 1987, 1990, 1999-2012 Free Software Foundation, Inc. - -Written by James Van Artsdalen of Dell Computer Corp. james@bigtex.cactus.org. -Subsequently improved for Dell 2.2 by Eric S. Raymond . - -This file is part of GNU Emacs. - -GNU Emacs is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -GNU Emacs is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU Emacs. If not, see . */ - -/* Get FIONREAD from . Get to get struct tchars. - But get first to make sure ttold.h doesn't interfere. */ -#include - -#ifdef emacs -#include -#include -#include -#include -#include -#include -#include -#endif -- 2.39.2