- replaced u_src-mesa_dri2.c-define-_GNU_SOURCE.patch with upstream
U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libvdpau?expand=0&rev=7
This commit is contained in:
parent
85b68bf9a1
commit
0c6f27a3a5
29
U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch
Normal file
29
U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch
Normal file
@ -0,0 +1,29 @@
|
||||
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
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 7 10:24:35 UTC 2015 - sndirsch@suse.com
|
||||
|
||||
- replaced u_src-mesa_dri2.c-define-_GNU_SOURCE.patch with upstream
|
||||
U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 2 13:03:40 UTC 2015 - sndirsch@suse.com
|
||||
|
||||
|
@ -28,7 +28,7 @@ Source1: http://people.freedesktop.org/~aplattner/vdpau/vdpauinfo-1.0.tar
|
||||
Source2: README
|
||||
Source99: baselibs.conf
|
||||
Source100: %{name}-rpmlintrc
|
||||
Patch0: u_src-mesa_dri2.c-define-_GNU_SOURCE.patch
|
||||
Patch0: U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: doxygen
|
||||
|
@ -1,26 +0,0 @@
|
||||
From 61c933961b9dd02c9dfb77f086c25b83749f4b37 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Dirsch <sndirsch@suse.de>
|
||||
Date: Wed, 2 Sep 2015 14:57:35 +0200
|
||||
Subject: [PATCH] src/mesa_dri2.c: define _GNU_SOURCE
|
||||
|
||||
Without having defined _GNU_SOURCE __USE_GNU isn't defined either.
|
||||
Though secure_getenv() in stdlib.h isn't declared.
|
||||
---
|
||||
src/mesa_dri2.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/mesa_dri2.c b/src/mesa_dri2.c
|
||||
index 51e8794..8594c1f 100644
|
||||
--- a/src/mesa_dri2.c
|
||||
+++ b/src/mesa_dri2.c
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
|
||||
#define NEED_REPLIES
|
||||
+#define _GNU_SOURCE
|
||||
#include <X11/Xlibint.h>
|
||||
#include <X11/extensions/Xext.h>
|
||||
#include <X11/extensions/extutil.h>
|
||||
--
|
||||
1.8.4.5
|
||||
|
Loading…
x
Reference in New Issue
Block a user