[90065] trunk/dports/science/metaio
ram at macports.org
ram at macports.org
Mon Feb 20 09:50:33 PST 2012
Revision: 90065
http://trac.macports.org/changeset/90065
Author: ram at macports.org
Date: 2012-02-20 09:50:31 -0800 (Mon, 20 Feb 2012)
Log Message:
-----------
science/metaio: call gzgetc() with expected arg, fixes build
Modified Paths:
--------------
trunk/dports/science/metaio/Portfile
Added Paths:
-----------
trunk/dports/science/metaio/files/
trunk/dports/science/metaio/files/patch-src-metaio.c.diff
Modified: trunk/dports/science/metaio/Portfile
===================================================================
--- trunk/dports/science/metaio/Portfile 2012-02-20 17:29:35 UTC (rev 90064)
+++ trunk/dports/science/metaio/Portfile 2012-02-20 17:50:31 UTC (rev 90065)
@@ -4,6 +4,7 @@
name metaio
version 8.2.1
+revision 1
categories science
platforms darwin
maintainers ram
@@ -22,6 +23,8 @@
sha1 62cab8181876974e5249f4b0196a07391383c0c5 \
rmd160 10ad3f34a303fd06505f853baecfd4ec64d39682
+patchfiles patch-src-metaio.c.diff
+
depends_lib port:zlib
livecheck.type regex
Added: trunk/dports/science/metaio/files/patch-src-metaio.c.diff
===================================================================
--- trunk/dports/science/metaio/files/patch-src-metaio.c.diff (rev 0)
+++ trunk/dports/science/metaio/files/patch-src-metaio.c.diff 2012-02-20 17:50:31 UTC (rev 90065)
@@ -0,0 +1,29 @@
+--- src/metaio.c
++++ src/metaio.c
+@@ -545,7 +545,7 @@ int character_entity(const char* const s)
+ static
+ int get_char(MetaioFile const f)
+ {
+- const int c = gzgetc(f->fp);
++ const int c = gzgetc((gzFile)f->fp);
+
+ if (c == '\n')
+ {
+@@ -794,7 +794,7 @@ int fscanf_ilwd_char_u(MetaioFile f, struct MetaioStringU *b,
+
+ /*-- Get first character which is not a space --*/
+ do
+- val = gzgetc(f->fp);
++ val = gzgetc((gzFile)f->fp);
+ while(val == ' ');
+
+ while ((count == 1) && (val <= 256) && ! strchr(terminators, val) && (val != EOF))
+@@ -840,7 +840,7 @@ int fscanf_ilwd_char_u(MetaioFile f, struct MetaioStringU *b,
+
+ /*-- Get next character, skipping any spaces. --*/
+ do
+- val = gzgetc(f->fp);
++ val = gzgetc((gzFile)f->fp);
+ while(val == ' ');
+ }
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120220/872b4854/attachment-0001.html>
More information about the macports-changes
mailing list