summaryrefslogtreecommitdiff
path: root/source/x/x11/patch/xdm/xdm-1.1.11-arc4random-include.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11/patch/xdm/xdm-1.1.11-arc4random-include.patch')
-rw-r--r--source/x/x11/patch/xdm/xdm-1.1.11-arc4random-include.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/x/x11/patch/xdm/xdm-1.1.11-arc4random-include.patch b/source/x/x11/patch/xdm/xdm-1.1.11-arc4random-include.patch
new file mode 100644
index 00000000..db948094
--- /dev/null
+++ b/source/x/x11/patch/xdm/xdm-1.1.11-arc4random-include.patch
@@ -0,0 +1,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
+