[80075] trunk/dports/textproc/libiconv
jeremyhu at macports.org
jeremyhu at macports.org
Sun Jul 3 16:43:20 PDT 2011
Revision: 80075
http://trac.macports.org/changeset/80075
Author: jeremyhu at macports.org
Date: 2011-07-03 16:43:20 -0700 (Sun, 03 Jul 2011)
Log Message:
-----------
libiconv: Build fix for c99 compilers like clang
Dev ack via email
Modified Paths:
--------------
trunk/dports/textproc/libiconv/Portfile
Added Paths:
-----------
trunk/dports/textproc/libiconv/files/patch-c99.diff
Modified: trunk/dports/textproc/libiconv/Portfile
===================================================================
--- trunk/dports/textproc/libiconv/Portfile 2011-07-03 23:42:36 UTC (rev 80074)
+++ trunk/dports/textproc/libiconv/Portfile 2011-07-03 23:43:20 UTC (rev 80075)
@@ -41,7 +41,8 @@
patch.pre_args -p1
patchfiles \
patch-utf8mac.diff \
- patch-src-Makefile.in-darwin.diff
+ patch-src-Makefile.in-darwin.diff \
+ patch-c99.diff
configure.cppflags
configure.ldflags
Added: trunk/dports/textproc/libiconv/files/patch-c99.diff
===================================================================
--- trunk/dports/textproc/libiconv/files/patch-c99.diff (rev 0)
+++ trunk/dports/textproc/libiconv/files/patch-c99.diff 2011-07-03 23:43:20 UTC (rev 80075)
@@ -0,0 +1,13 @@
+--- lib/iconv.c.orig 2011-07-03 10:09:20.000000000 -0700
++++ lib/iconv.c 2011-07-03 10:11:24.000000000 -0700
+@@ -172,7 +172,9 @@ static const struct alias sysdep_aliases
+ #include "aliases2.h"
+ #undef S
+ };
+-#ifdef __GNUC__
++#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC_STDC_INLINE__)
++static inline
++#elif defined(__GNUC__)
+ __inline
+ #endif
+ const struct alias *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110703/428b9ba5/attachment.html>
More information about the macports-changes
mailing list