summaryrefslogtreecommitdiff
blob: db948094b755d9e05e5cc3c03a5c5b89461fc05d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -ur a/xdm/genauth.c b/xdm/genauth.c
--- a/xdm/genauth.c	2011-09-25 09:35:47.000000000 +0200
+++ b/xdm/genauth.c	2014-01-06 16:28:09.664060603 +0100
@@ -40,6 +40,14 @@
 
 #include <errno.h>
 
+#ifdef HAVE_ARC4RANDOM
+# ifdef __linux__
+#  include <bsd/stdlib.h>
+# else
+#  include <stdlib.h>
+# endif
+#endif
+
 #include <time.h>
 #define Time_t time_t