diff options
| author | Glenn Morris | 2012-07-30 07:46:48 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-07-30 07:46:48 -0700 |
| commit | 32bac6d6e81cc5039db7e34e3ac70930d2cb586e (patch) | |
| tree | 10053fd18ce10ee0ba4b4f74572d92fb2c121e03 | |
| parent | 0a763bd17bc8c282523a137ad9984c8a314aabd2 (diff) | |
| download | emacs-32bac6d6e81cc5039db7e34e3ac70930d2cb586e.tar.gz emacs-32bac6d6e81cc5039db7e34e3ac70930d2cb586e.zip | |
Empty src/s/netbsd.h and remove the file
* configure.ac (SIGNAL_H_AHB): New hack macro.
(opsysfile): Set to empty on netbsd, openbsd.
(AH_BOTTOM): Include signal.h if SIGNAL_H_AHB is defined.
* src/s/netbsd.h: Let configure include signal.h if needed.
Remove file, which is now empty.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.ac | 17 | ||||
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/s/netbsd.h | 24 |
4 files changed, 22 insertions, 26 deletions
| @@ -1,5 +1,9 @@ | |||
| 1 | 2012-07-30 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-30 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * configure.ac (SIGNAL_H_AHB): New hack macro. | ||
| 4 | (opsysfile): Set to empty on netbsd, openbsd. | ||
| 5 | (AH_BOTTOM): Include signal.h if SIGNAL_H_AHB is defined. | ||
| 6 | |||
| 3 | * configure.ac (_longjmp, _setjmp): Move here from src/s. | 7 | * configure.ac (_longjmp, _setjmp): Move here from src/s. |
| 4 | 8 | ||
| 5 | 2012-07-30 Jan Djärv <jan.h.d@swipnet.se> | 9 | 2012-07-30 Jan Djärv <jan.h.d@swipnet.se> |
diff --git a/configure.ac b/configure.ac index 9ca02cce7cc..77eab0821eb 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3641,12 +3641,19 @@ case $opsys in | |||
| 3641 | esac | 3641 | esac |
| 3642 | 3642 | ||
| 3643 | 3643 | ||
| 3644 | dnl Used in xfaces.c. | ||
| 3645 | case $opsys in | 3644 | case $opsys in |
| 3646 | hpux* | sol2* ) | 3645 | hpux* | sol2* ) |
| 3646 | dnl Used in xfaces.c. | ||
| 3647 | AC_DEFINE(XOS_NEEDS_TIME_H, 1, [Compensate for a bug in Xos.h on | 3647 | AC_DEFINE(XOS_NEEDS_TIME_H, 1, [Compensate for a bug in Xos.h on |
| 3648 | some systems, where it requires time.h.]) | 3648 | some systems, where it requires time.h.]) |
| 3649 | ;; | 3649 | ;; |
| 3650 | |||
| 3651 | netbsd | openbsd ) | ||
| 3652 | dnl Greg A. Woods <woods@weird.com> says we must include signal.h | ||
| 3653 | dnl before syssignal.h is included, to work around interface conflicts | ||
| 3654 | dnl that are handled with CPP __RENAME() macro in signal.h. | ||
| 3655 | AC_DEFINE(SIGNAL_H_AHB, 1, [Define if AH_BOTTOM should include signal.h.]) | ||
| 3656 | ;; | ||
| 3650 | esac | 3657 | esac |
| 3651 | 3658 | ||
| 3652 | 3659 | ||
| @@ -3772,7 +3779,7 @@ case $opsys in | |||
| 3772 | should not call setpgrp.]) | 3779 | should not call setpgrp.]) |
| 3773 | ;; | 3780 | ;; |
| 3774 | 3781 | ||
| 3775 | openbsd) opsysfile="s/netbsd.h" ;; | 3782 | netbsd | openbsd ) opsysfile= ;; |
| 3776 | 3783 | ||
| 3777 | sol2-10) | 3784 | sol2-10) |
| 3778 | AC_DEFINE(_STRUCTURED_PROC, 1, [Needed for system_process_attributes | 3785 | AC_DEFINE(_STRUCTURED_PROC, 1, [Needed for system_process_attributes |
| @@ -4186,6 +4193,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 4186 | #define EMACS_CONFIG_H | 4193 | #define EMACS_CONFIG_H |
| 4187 | ])dnl | 4194 | ])dnl |
| 4188 | 4195 | ||
| 4196 | dnl FIXME undefs in here get commented out by autoconf. :( | ||
| 4189 | AH_BOTTOM([ | 4197 | AH_BOTTOM([ |
| 4190 | /* On AIX 3 this must be included before any other include file. */ | 4198 | /* On AIX 3 this must be included before any other include file. */ |
| 4191 | #include <alloca.h> | 4199 | #include <alloca.h> |
| @@ -4193,6 +4201,11 @@ AH_BOTTOM([ | |||
| 4193 | # error "alloca not available on this machine" | 4201 | # error "alloca not available on this machine" |
| 4194 | #endif | 4202 | #endif |
| 4195 | 4203 | ||
| 4204 | #ifdef SIGNAL_H_AHB | ||
| 4205 | #undef SIGNAL_H_AHB | ||
| 4206 | #include <signal.h> | ||
| 4207 | #endif | ||
| 4208 | |||
| 4196 | /* This silences a few compilation warnings on FreeBSD. */ | 4209 | /* This silences a few compilation warnings on FreeBSD. */ |
| 4197 | #ifdef BSD_SYSTEM_AHB | 4210 | #ifdef BSD_SYSTEM_AHB |
| 4198 | #undef BSD_SYSTEM_AHB | 4211 | #undef BSD_SYSTEM_AHB |
diff --git a/src/ChangeLog b/src/ChangeLog index 37d660da785..076b5eb1cce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-07-30 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-30 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * s/netbsd.h: Let configure include signal.h if needed. | ||
| 4 | Remove file, which is now empty. | ||
| 5 | |||
| 3 | * s/usg5-4-common.h (_longjmp, _setjmp): Let configure set them. | 6 | * s/usg5-4-common.h (_longjmp, _setjmp): Let configure set them. |
| 4 | * s/irix6-5.h (_longjmp, _setjmp): No more need to undefine. | 7 | * s/irix6-5.h (_longjmp, _setjmp): No more need to undefine. |
| 5 | 8 | ||
diff --git a/src/s/netbsd.h b/src/s/netbsd.h deleted file mode 100644 index 7a571ee8116..00000000000 --- a/src/s/netbsd.h +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | /* s/ file for netbsd system. | ||
| 2 | |||
| 3 | Copyright (C) 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 | /* Greg A. Woods <woods@weird.com> says we must include signal.h | ||
| 21 | before syssignal.h is included, to work around interface conflicts | ||
| 22 | that are handled with CPP __RENAME() macro in signal.h. */ | ||
| 23 | #include <signal.h> | ||
| 24 | |||