summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2004-07-09 18:46:51 +0000
committerJon Smirl <jonsmirl@gmail.com>2004-07-09 18:46:51 +0000
commit368f3c551befc29051d0061c33f408249c88b1f8 (patch)
tree38618cf9ee4524384ec19e909d46c51996a86dd9
parentd53d429ed298c500cf785991e648b2862e130dda (diff)
Fix mesa-solo config to define _GNU_SOURCE so that program_invocation_short_name
will be correctly defined.
-rw-r--r--configs/linux-solo2
-rw-r--r--src/mesa/drivers/dri/common/xmlconfig.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/configs/linux-solo b/configs/linux-solo
index a5feac4c2a0..387f764f374 100644
--- a/configs/linux-solo
+++ b/configs/linux-solo
@@ -8,7 +8,7 @@ CONFIG_NAME = linux-solo
CC = gcc
CXX = g++
-CCOMMON = -DDRI_NEW_INTERFACE_ONLY -D_POSIX_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=199309L
+CCOMMON = -DDRI_NEW_INTERFACE_ONLY -D_POSIX_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=199309L -D_GNU_SOURCE
CFLAGS = $(CCOMMON) -Wmissing-prototypes -g -std=c99 -Wundef -fPIC -ffast-math
diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c
index 698abd8fca0..308f415b870 100644
--- a/src/mesa/drivers/dri/common/xmlconfig.c
+++ b/src/mesa/drivers/dri/common/xmlconfig.c
@@ -34,7 +34,6 @@
#include <expat.h>
#include <fcntl.h>
#include <unistd.h>
-#define __USE_GNU /* defines program_invocation_short_name */
#include <errno.h>
#include "imports.h"
#include "dri_util.h"