Mercurial > emacs
diff src/sysdep.c @ 35055:daf01616a3e7
(random, srandom): Declare explicitly.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 04 Jan 2001 17:47:01 +0000 |
parents | 79a269bdf047 |
children | ef98c2544bee |
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