diff options
| author | Glenn Morris <rgm@gnu.org> | 2012-07-06 21:03:46 -0400 |
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2012-07-06 21:03:46 -0400 |
| commit | 4516fbef7207ca23ca72da28d060dad979319310 (patch) | |
| tree | aff14f94e05168a85e2b92dbc026fcc75a9f0909 /src | |
| parent | 07adc2c63b17a5829879886901cb731483a469cd (diff) | |
| download | emacs-4516fbef7207ca23ca72da28d060dad979319310.tar.gz | |
Replace some src/s undefs by never even checking on relevant platforms
* configure.in: (getwd): Don't check for it on unixware.
(random, rint): Don't check for these on hpux.
(res_init, libresolv): Don't check for these on darwin.
* src/s/darwin.h (HAVE_RES_INIT, HAVE_LIBRESOLV):
* src/s/hpux10-20.h (HAVE_RINT, HAVE_RANDOM):
* src/s/unixware.h (HAVE_GETWD): Move undefs to configure (effectively).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/s/darwin.h | 5 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 13 | ||||
| -rw-r--r-- | src/s/unixware.h | 3 |
4 files changed, 8 insertions, 19 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ef2d06dc5b0..03c92804fb8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-07-07 Glenn Morris <rgm@gnu.org> + + * s/darwin.h (HAVE_RES_INIT, HAVE_LIBRESOLV): + * s/hpux10-20.h (HAVE_RINT, HAVE_RANDOM): + * s/unixware.h (HAVE_GETWD): Move undefs to configure (effectively). + 2012-07-07 Juanma Barranquero <lekktu@gmail.com> * makefile.w32-in (DISPEXTERN_H, $(BLD)/regex.$(O)): diff --git a/src/s/darwin.h b/src/s/darwin.h index ce86bc5f578..b042630ee91 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h @@ -106,11 +106,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define SYSTEM_PURESIZE_EXTRA 200000 #endif -/* On Darwin, res_init appears not to be useful: see bug#562 and - http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html */ -#undef HAVE_RES_INIT -#undef HAVE_LIBRESOLV - #ifdef emacs #define malloc unexec_malloc #define realloc unexec_realloc diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index 683837891f4..62bb0f4e344 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h @@ -61,23 +61,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ HP-UX 10.20, and that it works for HP-UX 0 as well. */ #define NO_EDITRES -/* Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines - has a broken `rint' in some library versions including math library - version number A.09.05. - - You can fix the math library by installing patch number PHSS_4630. - But we can fix it more reliably for Emacs like this. */ -#undef HAVE_RINT - /* We have to go this route, rather than hpux9's approach of renaming the functions via macros. The system's stdlib.h has fully prototyped declarations, which yields a conflicting definition of srand48; it tries to redeclare what was once srandom to be srand48. So we go - with HAVE_LRAND48 being defined. */ + with HAVE_LRAND48 being defined. + Note we also undef HAVE_RANDOM via configure. */ #undef srandom #undef random -#undef HAVE_RANDOM - /* Rainer Malzbender <rainer@displaytech.com> says defining HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 using GCC. */ diff --git a/src/s/unixware.h b/src/s/unixware.h index 18d24b28507..1f35287f6d1 100644 --- a/src/s/unixware.h +++ b/src/s/unixware.h @@ -20,9 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include "usg5-4-common.h" -/* #define HAVE_GETWD (appears to be buggy on SVR4.2) */ -#undef HAVE_GETWD - /* This is the same definition as in usg5-4-common.h, but with sigblock/sigunblock rather than sighold/sigrelse, which appear to be BSD4.1 specific. It may also be appropriate for SVR4.x |
