File U_Add-AC_USE_SYSTEM_EXTENSIONS-to-expose-arc4random-in.patch of Package libXdmcp.6605
From 9f4cac7656b221ce2a8f97e7bd31e5e23126d001 Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sat, 17 Jan 2015 10:37:09 -0800
Subject: [PATCH] Add AC_USE_SYSTEM_EXTENSIONS to expose arc4random()
interfaces in headers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index cf6b309..d117aa1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,10 @@ AC_INIT([libXdmcp], [1.1.1],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXdmcp])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
+# Set common system defines for POSIX extensions, such as _GNU_SOURCE
+# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
+# to avoid autoconf errors.
+AC_USE_SYSTEM_EXTENSIONS
# Initialize Automake
AM_INIT_AUTOMAKE([foreign dist-bzip2])
--
2.12.3