You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-apps/xdm/files/xdm-1.1.11-arc4random-inclu...

19 lines
360 B

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