File U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch of Package libvdpau

From b9905906439d84ee8e99c648ca2383c32c057c68 Mon Sep 17 00:00:00 2001
From: Rico Tzschichholz <ricotz@ubuntu.com>
Date: Tue, 1 Sep 2015 10:45:11 +0200
Subject: [PATCH] mesa_dri2: Add missing include of config.h to define
 _GNU_SOURCE

Fix build with -Wimplicit-function-declaration while secure_getenv() is
guarded by __USE_GNU.
---
 src/mesa_dri2.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa_dri2.c b/src/mesa_dri2.c
index 51e8794..420ccee 100644
--- a/src/mesa_dri2.c
+++ b/src/mesa_dri2.c
@@ -33,6 +33,9 @@
  *   and José Hiram Soltren (jsoltren@nvidia.com)
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #define NEED_REPLIES
 #include <X11/Xlibint.h>
-- 
2.5.0
openSUSE Build Service is sponsored by