From: Dave Love Date: Thu, 4 Jan 2001 17:47:01 +0000 (+0000) Subject: (random, srandom): Declare explicitly. X-Git-Tag: emacs-pretest-21.0.95~115 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8296bbf80b3d8d5e6de72767ef6997ca5ba6333a;p=emacs.git (random, srandom): Declare explicitly. --- diff --git a/src/sysdep.c b/src/sysdep.c index 65cb02156b0..8d8289dbb99 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -26,8 +26,14 @@ Boston, MA 02111-1307, USA. */ #ifdef HAVE_UNISTD_H #include #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