summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2015-09-01 10:45:11 +0200
committerAaron Plattner <aplattner@nvidia.com>2015-09-07 21:18:01 -0700
commit1cda354bdfd0c9ca107293b84b52f4464fdbedcc (patch)
tree70d4bfead9a8da36522e4030941bca66b080e9e3
parentaf517f56d64118520aa0c8456318dd9ec3307e94 (diff)
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. Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Tested-by: Stefan Dirsch <sndirsch@suse.de>
-rw-r--r--src/mesa_dri2.c3
1 files changed, 3 insertions, 0 deletions
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>