diff options
| author | Glenn Morris | 2012-07-30 21:32:19 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-30 21:32:19 -0400 |
| commit | c1529dedfc3df43bfa794c69076da9fff05808a5 (patch) | |
| tree | 69f2a70d91d83b9c90c1eb15151d54b24d44af86 | |
| parent | b429a4eee4e09b1ba09e17ced5091d042955d84f (diff) | |
| download | emacs-c1529dedfc3df43bfa794c69076da9fff05808a5.tar.gz emacs-c1529dedfc3df43bfa794c69076da9fff05808a5.zip | |
Remove src/s/hpux10-20.h
* configure.ac (opsysfile): Set to empty on hpux*.
* src/conf_post.h [HPUX]: Move random, srandom here from s/hpux10-20.h.
* src/s/hpux10-20.h: Remove file, which is now empty.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.ac | 3 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/conf_post.h | 11 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 27 |
5 files changed, 21 insertions, 29 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-07-31 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac (opsysfile): Set to empty on hpux*. | ||
| 4 | |||
| 1 | 2012-07-30 Glenn Morris <rgm@gnu.org> | 5 | 2012-07-30 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * configure.ac (AH_BOTTOM): Use an include file, so that the | 7 | * configure.ac (AH_BOTTOM): Use an include file, so that the |
diff --git a/configure.ac b/configure.ac index 402524f436d..f11a6c4cec6 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3723,6 +3723,7 @@ case $opsys in | |||
| 3723 | ;; | 3723 | ;; |
| 3724 | 3724 | ||
| 3725 | hpux*) | 3725 | hpux*) |
| 3726 | opsysfile= | ||
| 3726 | AC_DEFINE(USG, []) | 3727 | AC_DEFINE(USG, []) |
| 3727 | AC_DEFINE(USG5, []) | 3728 | AC_DEFINE(USG5, []) |
| 3728 | AC_DEFINE(HPUX, [], [Define if the system is HPUX.]) | 3729 | AC_DEFINE(HPUX, [], [Define if the system is HPUX.]) |
| @@ -3773,8 +3774,6 @@ case $opsys in | |||
| 3773 | AC_DEFINE(USG_SUBTTY_WORKS, 1, [Define for USG systems where it | 3774 | AC_DEFINE(USG_SUBTTY_WORKS, 1, [Define for USG systems where it |
| 3774 | works to open a pty's tty in the parent process, then close and | 3775 | works to open a pty's tty in the parent process, then close and |
| 3775 | reopen it in the child.]) | 3776 | reopen it in the child.]) |
| 3776 | |||
| 3777 | opsysfile="s/hpux10-20.h" | ||
| 3778 | ;; | 3777 | ;; |
| 3779 | 3778 | ||
| 3780 | irix6-5) | 3779 | irix6-5) |
diff --git a/src/ChangeLog b/src/ChangeLog index f3e8b58e071..baf73fb870c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-31 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * conf_post.h [HPUX]: Move random, srandom here from s/hpux10-20.h. | ||
| 4 | * s/hpux10-20.h: Remove file, which is now empty. | ||
| 5 | |||
| 1 | 2012-07-30 Glenn Morris <rgm@gnu.org> | 6 | 2012-07-30 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * conf_post.h: New, split from configure.ac's AH_BOTTOM. | 8 | * conf_post.h: New, split from configure.ac's AH_BOTTOM. |
diff --git a/src/conf_post.h b/src/conf_post.h index 5efecfb8c05..d81763b1a73 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -51,6 +51,17 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 51 | #endif | 51 | #endif |
| 52 | #endif | 52 | #endif |
| 53 | 53 | ||
| 54 | /* We have to go this route, rather than the old hpux9 approach of | ||
| 55 | renaming the functions via macros. The system's stdlib.h has fully | ||
| 56 | prototyped declarations, which yields a conflicting definition of | ||
| 57 | srand48; it tries to redeclare what was once srandom to be srand48. | ||
| 58 | So we go with HAVE_LRAND48 being defined. Note we also undef | ||
| 59 | HAVE_RANDOM via configure. */ | ||
| 60 | #ifdef HPUX | ||
| 61 | #undef srandom | ||
| 62 | #undef random | ||
| 63 | #endif | ||
| 64 | |||
| 54 | /* Define AMPERSAND_FULL_NAME if you use the convention | 65 | /* Define AMPERSAND_FULL_NAME if you use the convention |
| 55 | that & in the full name stands for the login id. */ | 66 | that & in the full name stands for the login id. */ |
| 56 | /* Turned on June 1996 supposing nobody will mind it. */ | 67 | /* Turned on June 1996 supposing nobody will mind it. */ |
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h deleted file mode 100644 index 94b46a715ea..00000000000 --- a/src/s/hpux10-20.h +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | /* System description file for hpux version 10.20. | ||
| 2 | |||
| 3 | Copyright (C) 1999, 2001-2012 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | ||
| 19 | |||
| 20 | /* We have to go this route, rather than hpux9's approach of renaming the | ||
| 21 | functions via macros. The system's stdlib.h has fully prototyped | ||
| 22 | declarations, which yields a conflicting definition of srand48; it | ||
| 23 | tries to redeclare what was once srandom to be srand48. So we go | ||
| 24 | with HAVE_LRAND48 being defined. | ||
| 25 | Note we also undef HAVE_RANDOM via configure. */ | ||
| 26 | #undef srandom | ||
| 27 | #undef random | ||