diff options
author | krion <krion@FreeBSD.org> | 2004-08-23 04:20:53 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-08-23 04:20:53 +0800 |
commit | 15ec5ca1adad869755db28c33d1e52590b987873 (patch) | |
tree | 7fa9755abef071ebca9e81dbbb5aaa2a2aacfff8 /cad | |
parent | e1c53a1d28cc6de636ec5988f20bc2dfeec80334 (diff) | |
download | freebsd-ports-gnome-15ec5ca1adad869755db28c33d1e52590b987873.tar.gz freebsd-ports-gnome-15ec5ca1adad869755db28c33d1e52590b987873.tar.zst freebsd-ports-gnome-15ec5ca1adad869755db28c33d1e52590b987873.zip |
Fix build with gcc-3.4
Pet portlint.
Diffstat (limited to 'cad')
-rw-r--r-- | cad/dinotrace/Makefile | 3 | ||||
-rw-r--r-- | cad/dinotrace/files/patch-src_dt__draw.c | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/cad/dinotrace/Makefile b/cad/dinotrace/Makefile index fe562332601a..b5132c5dea5d 100644 --- a/cad/dinotrace/Makefile +++ b/cad/dinotrace/Makefile @@ -12,10 +12,11 @@ MASTER_SITES= http://www.veripool.com/ftp/ DISTNAME= dinotrace-9.1m MAINTAINER= watchman@ludd.luth.se -COMMENT= A gaphical signal trace waveform viewer. +COMMENT= A gaphical signal trace waveform viewer GNU_CONFIGURE= yes USE_MOTIF= yes +USE_PERL5_BUILD= yes USE_X_PREFIX= yes INFO= dinotrace diff --git a/cad/dinotrace/files/patch-src_dt__draw.c b/cad/dinotrace/files/patch-src_dt__draw.c new file mode 100644 index 000000000000..5ccff1a72aa6 --- /dev/null +++ b/cad/dinotrace/files/patch-src_dt__draw.c @@ -0,0 +1,16 @@ + +$FreeBSD$ + +--- src/dt_draw.c.orig Sun Aug 22 22:14:43 2004 ++++ src/dt_draw.c Sun Aug 22 22:18:04 2004 +@@ -542,7 +542,9 @@ + case STATE_Z: dr_mask |= DR_Z; break; + default: dr_mask |= DR_LOW | DR_HIGH; break; + } +- color_value = MAX(color_value, nptr->siglw.stbits.color); ++ if (color_value > nptr->siglw.stbits.color); ++ color_value = nptr->siglw.stbits.color; ++ + xright = MAX(xright, TIME_TO_XPOS (CPTR_TIME(nnptr))); + nptr = nnptr; + } |