Fix mesa-solo config to define _GNU_SOURCE so that program_invocation_short_name
authorJon Smirl <jonsmirl@gmail.com>
Fri, 9 Jul 2004 18:46:51 +0000 (18:46 +0000)
committerJon Smirl <jonsmirl@gmail.com>
Fri, 9 Jul 2004 18:46:51 +0000 (18:46 +0000)
will be correctly defined.

configs/linux-solo
src/mesa/drivers/dri/common/xmlconfig.c

index a5feac4c2a0ceab47317e1f5f5dc0dab64838706..387f764f374b36c2d4ca9931799fb631891c1b71 100644 (file)
@@ -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
 
index 698abd8fca0b4b8052dbebd9cec6f160652089c8..308f415b870b3d52aa4c36f98af3c90df14a37d3 100644 (file)
@@ -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"