summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/patches/patch-av
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/MesaLib/patches/patch-av')
-rw-r--r--graphics/MesaLib/patches/patch-av19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/MesaLib/patches/patch-av b/graphics/MesaLib/patches/patch-av
new file mode 100644
index 00000000000..a207f54ff70
--- /dev/null
+++ b/graphics/MesaLib/patches/patch-av
@@ -0,0 +1,19 @@
+$NetBSD: patch-av,v 1.1 2008/06/03 06:59:13 dsainty Exp $
+
+'program_invocation_short_name' may be conditionally defined even if there is
+a declaration available. Make sure it's always available by making the
+extern unconditional.
+
+--- src/mesa/drivers/dri/common/xmlconfig.c.orig 2007-06-22 10:10:54.000000000 +1200
++++ src/mesa/drivers/dri/common/xmlconfig.c 2008-04-27 21:31:28.660265951 +1200
+@@ -49,10 +49,8 @@
+ #undef GET_PROGRAM_NAME
+
+ #if (defined(__GNU_LIBRARY__) || defined(__GLIBC__)) && !defined(__UCLIBC__)
+-# if !defined(__GLIBC__) || (__GLIBC__ < 2)
+ /* These aren't declared in any libc5 header */
+ extern char *program_invocation_name, *program_invocation_short_name;
+-# endif
+ # define GET_PROGRAM_NAME() program_invocation_short_name
+ #elif defined(__FreeBSD__) && (__FreeBSD__ >= 2)
+ # include <osreldate.h>