diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2006-12-20 23:43:40 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2006-12-20 23:43:40 +0000 |
commit | 5ac04dc30d7e353bc1ee9711e84ad102d9dcffa3 (patch) | |
tree | 4334b097eb0e1954ca7f740a0bd817296b207033 /cad | |
parent | d90f6eec798712976821e13850bfd49a409e0738 (diff) | |
download | pkgsrc-5ac04dc30d7e353bc1ee9711e84ad102d9dcffa3.tar.gz |
work around the use of __FUNCTION__ in compilers that may not have it.
Builds on solaris with sun studio compilers now. Patch already in the
upstream sources.
Diffstat (limited to 'cad')
-rw-r--r-- | cad/geda-utils/distinfo | 3 | ||||
-rw-r--r-- | cad/geda-utils/patches/patch-aa | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/cad/geda-utils/distinfo b/cad/geda-utils/distinfo index 123f70b3da9..a89eafe1535 100644 --- a/cad/geda-utils/distinfo +++ b/cad/geda-utils/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.17 2006/10/23 09:43:13 dmcmahill Exp $ +$NetBSD: distinfo,v 1.18 2006/12/20 23:43:40 dmcmahill Exp $ SHA1 (geda/geda-utils-20061020.tar.gz) = 892ff9fd664054838f6e1f925e959f85cfcee916 RMD160 (geda/geda-utils-20061020.tar.gz) = 0a93851ae554edf1b30ffa3021e7c22b9fd9b781 Size (geda/geda-utils-20061020.tar.gz) = 268215 bytes +SHA1 (patch-aa) = 5be550c049164dfe780f80032965fd18ab34c86b diff --git a/cad/geda-utils/patches/patch-aa b/cad/geda-utils/patches/patch-aa new file mode 100644 index 00000000000..b68f9f0f380 --- /dev/null +++ b/cad/geda-utils/patches/patch-aa @@ -0,0 +1,20 @@ +$NetBSD: patch-aa,v 1.5 2006/12/20 23:43:40 dmcmahill Exp $ + +Already exists upstream. Needed for compilers such as sun studio compilers +that do not define __FUNCTION__ + +--- src/convert_sym.c.orig 2006-08-02 09:34:19.000000000 -0400 ++++ src/convert_sym.c +@@ -51,4 +51,12 @@ + #endif + ++ ++/* __FUNCTION__ seems to be a gcc thing */ ++#ifndef __GNUC__ ++#define __FUNCTION1(a,b) a ":" #b ++#define __FUNCTION2(a,b) __FUNCTION1(a,b) ++#define __FUNCTION__ __FUNCTION2(__FILE__,__LINE__) ++#endif ++ + #if 0 /* removed by AVH just to make a -Wall -Werror happy */ + #ifndef lint |