From 8296bbf80b3d8d5e6de72767ef6997ca5ba6333a Mon Sep 17 00:00:00 2001 From: Dave Love Date: Thu, 4 Jan 2001 17:47:01 +0000 Subject: [PATCH] (random, srandom): Declare explicitly. --- src/sysdep.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5