aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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