aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2001-01-04 17:47:01 +0000
committerDave Love2001-01-04 17:47:01 +0000
commit8296bbf80b3d8d5e6de72767ef6997ca5ba6333a (patch)
treefc540db3707203ae9f4eef6fb5dbe6cc7d7d67fd /src
parentd1d1aa9c41b2540fa07dda1d19dffadfa345dde5 (diff)
downloademacs-8296bbf80b3d8d5e6de72767ef6997ca5ba6333a.tar.gz
emacs-8296bbf80b3d8d5e6de72767ef6997ca5ba6333a.zip
(random, srandom): Declare explicitly.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c8
1 files changed, 7 insertions, 1 deletions
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. */
26#ifdef HAVE_UNISTD_H 26#ifdef HAVE_UNISTD_H
27#include <unistd.h> 27#include <unistd.h>
28#endif 28#endif
29
30#include "lisp.h" 29#include "lisp.h"
30/* Including stdlib.h isn't necessarily enough to get srandom
31 declared, e.g. without __USE_XOPEN_EXTENDED with glibc 2. */
32#ifdef HAVE_RANDOM
33extern long int random P_ ((void));
34extern void srandom P_ ((unsigned int));
35#endif
36
31#include "blockinput.h" 37#include "blockinput.h"
32#undef NULL 38#undef NULL
33 39