# HG changeset patch # User Dave Love # Date 978630421 0 # Node ID daf01616a3e781ec8acabfefcc160774f9c79b9d # Parent 3efcaab7433e4f6a05b711c80bbfc6f6bdcc96b6 (random, srandom): Declare explicitly. diff -r 3efcaab7433e -r daf01616a3e7 src/sysdep.c --- 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 #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