- u_src-mesa_dri2.c-define-_GNU_SOURCE.patch * Without having defined _GNU_SOURCE __USE_GNU isn't defined either. Though secure_getenv() in stdlib.h isn't declared. OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libvdpau?expand=0&rev=6
27 lines
675 B
Diff
27 lines
675 B
Diff
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
|
|
|