diff options
author | dsainty <dsainty@pkgsrc.org> | 2008-06-03 06:59:12 +0000 |
---|---|---|
committer | dsainty <dsainty@pkgsrc.org> | 2008-06-03 06:59:12 +0000 |
commit | dfbc21eebee3b298e489bcbd42fd472ed0c7d84b (patch) | |
tree | dca2e8b1419ef3bee2da03f643faca1349164993 /graphics/MesaLib/patches/patch-av | |
parent | c4f0fb73f3e8516e6f8942fade9f333685a9a938 (diff) | |
download | pkgsrc-dfbc21eebee3b298e489bcbd42fd472ed0c7d84b.tar.gz |
Add Linux to DRI platforms. Add a patch to fix compilation under Linux. Bump PKGREVISION.
Diffstat (limited to 'graphics/MesaLib/patches/patch-av')
-rw-r--r-- | graphics/MesaLib/patches/patch-av | 19 |
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> |