diff options
author | rillig <rillig@pkgsrc.org> | 2005-11-30 19:08:54 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-11-30 19:08:54 +0000 |
commit | a658c87fb451919350c1a2299e8d3a2b7e8fd381 (patch) | |
tree | fdac77845bdb8eb45909ab0843cad89ced26eec7 /misc | |
parent | cc871e08461c33cde492a3237a7dd873c0fa5097 (diff) | |
download | pkgsrc-a658c87fb451919350c1a2299e8d3a2b7e8fd381.tar.gz |
Added a patch that fixes the build for ISO C90 compilers.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/pyqt_memaid/distinfo | 3 | ||||
-rw-r--r-- | misc/pyqt_memaid/patches/patch-aa | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/misc/pyqt_memaid/distinfo b/misc/pyqt_memaid/distinfo index 7f58b08b15e..8da0210437d 100644 --- a/misc/pyqt_memaid/distinfo +++ b/misc/pyqt_memaid/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2005/10/12 20:18:11 wiz Exp $ +$NetBSD: distinfo,v 1.2 2005/11/30 19:08:54 rillig Exp $ SHA1 (pyqt_memaid_0.2.4.tgz) = 25a6f7e3df7e3170ce026bcb881352c8b6b73d87 RMD160 (pyqt_memaid_0.2.4.tgz) = 4eb36acf081303ee65b0c805af3adfa74a29c6a6 Size (pyqt_memaid_0.2.4.tgz) = 170549 bytes +SHA1 (patch-aa) = df1b3fd23f278b9babca51aea9c64801caf4a28b diff --git a/misc/pyqt_memaid/patches/patch-aa b/misc/pyqt_memaid/patches/patch-aa new file mode 100644 index 00000000000..bd5a32a9eea --- /dev/null +++ b/misc/pyqt_memaid/patches/patch-aa @@ -0,0 +1,18 @@ +$NetBSD: patch-aa,v 1.1 2005/11/30 19:08:54 rillig Exp $ + +In ISO C90, declarations may not be intermixed with code. + +--- pyqt_memaid/ann/memaid.c.orig Thu Sep 29 11:36:02 2005 ++++ pyqt_memaid/ann/memaid.c Wed Nov 30 20:04:42 2005 +@@ -949,10 +949,10 @@ u_short ma_rpts_upto (u_short to_day) { + u_short ma_rpts_drill (u_short grade_threshold) { /* bruno: how many to drill */ + register u_short count = 0; + register struct elem *e = List; ++ u_short to_day; + + if (e == NULL) + return 0; +- u_short to_day; + to_day = days(0) ; + + /*if (e->tm_t_rpt - e->ivl > to_day ) |