Mercurial > emacs
changeset 35055:daf01616a3e7
(random, srandom): Declare explicitly.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 04 Jan 2001 17:47:01 +0000 |
parents | 3efcaab7433e |
children | c9c43bb7f1d2 |
files | src/sysdep.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysdep.c Thu Jan 04 17:37:43 2001 +0000 +++ b/src/sysdep.c Thu Jan 04 17:47:01 2001 +0000 @@ -26,8 +26,14 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif - #include "lisp.h" +/* Including stdlib.h isn't necessarily enough to get srandom + declared, e.g. without __USE_XOPEN_EXTENDED with glibc 2. */ +#ifdef HAVE_RANDOM +extern long int random P_ ((void)); +extern void srandom P_ ((unsigned int)); +#endif + #include "blockinput.h" #undef NULL