summaryrefslogtreecommitdiff
path: root/cad/gnetlist
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2006-12-21 00:19:54 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2006-12-21 00:19:54 +0000
commitbba823b7e168e6bd4e84e095675fbd496b8ef458 (patch)
tree2599460ff10896a682fe59f4901d55760abd6d5e /cad/gnetlist
parent5ac04dc30d7e353bc1ee9711e84ad102d9dcffa3 (diff)
downloadpkgsrc-bba823b7e168e6bd4e84e095675fbd496b8ef458.tar.gz
Fix this on compilers (sun studio for example) without __FUNCTION__.
Patch is already in upstream sources.
Diffstat (limited to 'cad/gnetlist')
-rw-r--r--cad/gnetlist/distinfo3
-rw-r--r--cad/gnetlist/patches/patch-aa20
2 files changed, 22 insertions, 1 deletions
diff --git a/cad/gnetlist/distinfo b/cad/gnetlist/distinfo
index 1771e8703aa..f753c66d240 100644
--- a/cad/gnetlist/distinfo
+++ b/cad/gnetlist/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.20 2006/10/23 09:43:12 dmcmahill Exp $
+$NetBSD: distinfo,v 1.21 2006/12/21 00:19:54 dmcmahill Exp $
SHA1 (geda/geda-gnetlist-20061020.tar.gz) = b4f2121464ff22db8f0eb08a398df91b055032b2
RMD160 (geda/geda-gnetlist-20061020.tar.gz) = c05d3bee1db520c8f86c0e4ca6b1707b9c0b4cf8
Size (geda/geda-gnetlist-20061020.tar.gz) = 332027 bytes
+SHA1 (patch-aa) = 1fdc681538545f5712a423bc62b1ce89fbc7ff4c
diff --git a/cad/gnetlist/patches/patch-aa b/cad/gnetlist/patches/patch-aa
new file mode 100644
index 00000000000..e1d0ba69872
--- /dev/null
+++ b/cad/gnetlist/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.11 2006/12/21 00:19:54 dmcmahill Exp $
+
+work around compilers without __FUNCTION__ like sun studio compilers.
+Patch is already in the upstream sources.
+
+--- utils/mk_verilog_syms.c.orig 2005-02-04 18:14:31.000000000 -0500
++++ utils/mk_verilog_syms.c
+@@ -46,6 +46,12 @@
+ #define CYAN 6
+ #define GREY 7
+
++/* __FUNCTION__ seems to be a gcc extension */
++#ifndef __GNUC__
++#define __FUNCTION1(a,b) a ":" #b
++#define __FUNCTION2(a,b) __FUNCTION1(a,b)
++#define __FUNCTION__ __FUNCTION2(__FILE__,__LINE__)
++#endif
+
+ /* external prototypes */
+ int GetStringDisplayLength(char *str,int font_size); /* char_width.c */