diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-04-06 13:43:54 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-04-06 13:43:54 +0000 |
commit | 2b09b116e5e10d141e3a8552386816d9d8625223 (patch) | |
tree | 63ed009e75da7f4aa64a0a1fada2a63dee9c738d /lib/libXdmcp/Key.c | |
parent | 56c3c5438b1c350fcf85fc3c40bd2b17ee998fb5 (diff) |
Update to libXdmcp 1.1.2
Diffstat (limited to 'lib/libXdmcp/Key.c')
-rw-r--r-- | lib/libXdmcp/Key.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libXdmcp/Key.c b/lib/libXdmcp/Key.c index b1f29b764..a09b316f4 100644 --- a/lib/libXdmcp/Key.c +++ b/lib/libXdmcp/Key.c @@ -32,6 +32,11 @@ in this Software without prior written authorization from The Open Group. #include <X11/Xmd.h> #include <X11/Xdmcp.h> +#ifdef HAVE_LIBBSD +#include <bsd/stdlib.h> /* for arc4random_buf() */ +#endif + +#ifndef HAVE_ARC4RANDOM_BUF static void getbits (long data, unsigned char *dst) { @@ -40,6 +45,7 @@ getbits (long data, unsigned char *dst) dst[2] = (data >> 16) & 0xff; dst[3] = (data >> 24) & 0xff; } +#endif #define Time_t time_t |