]> git.eshelyaron.com Git - emacs.git/commitdiff
(random, srandom): Declare explicitly.
authorDave Love <fx@gnu.org>
Thu, 4 Jan 2001 17:47:01 +0000 (17:47 +0000)
committerDave Love <fx@gnu.org>
Thu, 4 Jan 2001 17:47:01 +0000 (17:47 +0000)
src/sysdep.c

index 65cb02156b07e24c047d31ae13c315f34c0a2d28..8d8289dbb99471bacba8a0ddbb22da69174e8d01 100644 (file)
@@ -26,8 +26,14 @@ Boston, MA 02111-1307, USA.  */
 #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