diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/conf_post.h | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fccb46f788e..26a93dbd817 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-07-31 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-31 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT. | ||
| 4 | |||
| 3 | * conf_post.h (AMPERSAND_FULL_NAME, subprocesses): | 5 | * conf_post.h (AMPERSAND_FULL_NAME, subprocesses): |
| 4 | Move to configure.ac. | 6 | Move to configure.ac. |
| 5 | 7 | ||
diff --git a/src/conf_post.h b/src/conf_post.h index f8b76a1b19e..aa09ae7228c 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -71,11 +71,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 71 | renaming the functions via macros. The system's stdlib.h has fully | 71 | renaming the functions via macros. The system's stdlib.h has fully |
| 72 | prototyped declarations, which yields a conflicting definition of | 72 | prototyped declarations, which yields a conflicting definition of |
| 73 | srand48; it tries to redeclare what was once srandom to be srand48. | 73 | srand48; it tries to redeclare what was once srandom to be srand48. |
| 74 | So we go with HAVE_LRAND48 being defined. Note we also undef | 74 | So we go with HAVE_LRAND48 being defined. */ |
| 75 | HAVE_RANDOM via configure. */ | ||
| 76 | #ifdef HPUX | 75 | #ifdef HPUX |
| 77 | #undef srandom | 76 | #undef srandom |
| 78 | #undef random | 77 | #undef random |
| 78 | /* We try to avoid checking for random and rint on hpux in | ||
| 79 | configure.ac, but some other configure test might check for them as | ||
| 80 | a dependency, so to be safe we also undefine them here. | ||
| 81 | */ | ||
| 82 | #undef HAVE_RANDOM | ||
| 83 | #undef HAVE_RINT | ||
| 79 | #endif | 84 | #endif |
| 80 | 85 | ||
| 81 | #ifdef IRIX6_5 | 86 | #ifdef IRIX6_5 |