Commit 4515017f authored by Glenn Morris's avatar Glenn Morris
Browse files

* src/conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT.

This is a belt-and-braces approach.

* Related comment.
parent 8d8e2dfe
......@@ -2725,7 +2725,6 @@ if test $opsys != unixware; then
dnl FIXME Fragile: see above.
## Eric Backus <> 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.
2012-07-31 Glenn Morris <>
* conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT.
* conf_post.h (AMPERSAND_FULL_NAME, subprocesses):
Move to
......@@ -71,11 +71,16 @@ along with GNU Emacs. If not, see <>. */
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. Note we also undef
HAVE_RANDOM via configure. */
So we go with HAVE_LRAND48 being defined. */
#ifdef HPUX
#undef srandom
#undef random
/* We try to avoid checking for random and rint on hpux in, but some other configure test might check for them as
a dependency, so to be safe we also undefine them here.
#undef HAVE_RINT
#ifdef IRIX6_5
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment