--- Portfile.orig	2009-01-28 13:46:04.000000000 -0500
+++ Portfile	2009-02-07 13:47:35.000000000 -0500
@@ -5,7 +5,7 @@
 
 name                    libiconv
 version                 1.12
-revision                2
+revision                3
 categories              textproc
 maintainers             ryandesign
 platforms               darwin freebsd linux
@@ -54,6 +54,11 @@
     --disable-nls \
     --enable-extra-encodings
 
+post-patch {
+    # make iconv prototype the same on all platforms
+    reinplace "s|am_cv_proto_iconv_arg1=\"const\"|am_cv_proto_iconv_arg1=\"\"|" ${worksrcpath}/configure
+}
+
 if {![variant_isset disable_utf8mac] || [variant_isset enable_cp932fix]} {
     build.cmd ${build.cmd} CC=${configure.cc} -f Makefile.devel && ${build.cmd}
 }

