From: Dave Love Date: Wed, 10 Jan 2001 11:54:41 +0000 (+0000) Subject: (random): Revert the declaration. X-Git-Tag: emacs-pretest-21.0.95~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1bfb1345160682ab80dd952f9fa85b69c95940ea;p=emacs.git (random): Revert the declaration. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0021ec4298b..51f2a856f6a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-01-10 Dave Love + + * sysdep.c (random): Revert the declaration. + 2001-01-09 Gerd Moellmann * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: Call @@ -44,7 +48,7 @@ * xterm.c (XTread_socket) : Set help_echo to nil. -2001-01-07 Dave Love +2001-01-07 Dave Love * keyboard.c (Fread_key_sequence_vector): Avoid newline in arglist, for documentation's sake. diff --git a/src/sysdep.c b/src/sysdep.c index 0e1b364be72..339a3c2941a 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -30,7 +30,12 @@ Boston, MA 02111-1307, USA. */ /* Including stdlib.h isn't necessarily enough to get srandom declared, e.g. without __USE_XOPEN_EXTENDED with glibc 2. */ #ifdef HAVE_RANDOM +#if 0 /* It turns out that defining _OSF_SOURCE in osf5-0.h gets + random prototyped as returning `int'. It looks to me as + though the best way to DTRT is to prefer the rand48 functions + (per libc.info). -- fx */ extern long int random P_ ((void)); +#endif #if 0 /* Don't prototype srandom; it takes an unsigned argument on some systems, and an unsigned long on others, like FreeBSD 4.1. */