From 0c6f27a3a57c534c2567523239ea635e904a9d2083d38fb1ca34a9f5c62deb37 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Mon, 7 Sep 2015 10:28:57 +0000 Subject: [PATCH] - 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 --- ...ude_of_config_h_to_define_GNU_SOURCE.patch | 29 +++++++++++++++++++ libvdpau.changes | 6 ++++ libvdpau.spec | 2 +- u_src-mesa_dri2.c-define-_GNU_SOURCE.patch | 26 ----------------- 4 files changed, 36 insertions(+), 27 deletions(-) create mode 100644 U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch delete mode 100644 u_src-mesa_dri2.c-define-_GNU_SOURCE.patch diff --git a/U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch b/U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch new file mode 100644 index 0000000..f7641c8 --- /dev/null +++ b/U_Add_missing_include_of_config_h_to_define_GNU_SOURCE.patch @@ -0,0 +1,29 @@ +From b9905906439d84ee8e99c648ca2383c32c057c68 Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz +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 +-- +2.5.0 + diff --git a/libvdpau.changes b/libvdpau.changes index bf1ee8e..d5b758f 100644 --- a/libvdpau.changes +++ b/libvdpau.changes @@ -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 diff --git a/libvdpau.spec b/libvdpau.spec index 91bcfbe..e6e3a2d 100644 --- a/libvdpau.spec +++ b/libvdpau.spec @@ -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 diff --git a/u_src-mesa_dri2.c-define-_GNU_SOURCE.patch b/u_src-mesa_dri2.c-define-_GNU_SOURCE.patch deleted file mode 100644 index c303915..0000000 --- a/u_src-mesa_dri2.c-define-_GNU_SOURCE.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 61c933961b9dd02c9dfb77f086c25b83749f4b37 Mon Sep 17 00:00:00 2001 -From: Stefan Dirsch -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 - #include - #include --- -1.8.4.5 -