Makefile: iconv() on Darwin has the old interface
PATCH 1/1 Makefile: iconv() on Darwin has the old interface
The libiconv on Darwin uses the old iconv() interface (2nd argument is a const char **, instead of a char **). Add OLD_ICONV to the Darwin variable definitions to handle this.
Signed-off-by Arjen Laarhoven <[email protected]>
--- Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Makefile +1 -0
@@ -385,6 +385,7 @@ endif ifeq ($(uname_S),Darwin) NEEDS_SSL_WITH_CRYPTO = YesPlease NEEDS_LIBICONV = YesPlease + OLD_ICONV = UnfortunatelyYes NO_STRLCPY = YesPlease endif ifeq ($(uname_S),SunOS)
Signature · 1 line
1.5.1.rc3.29.gd8b6
This patch either goes to 'maint' if everybody on Darwin needs to say OLD_ICONV, or not applied at all as-is if it is dependent on which variant of Darwin you are talking about.
Anybody else on Darwin around?
Quoted 1 line · Junio C Hamano
Anybody else on Darwin around?
Applying the patch does silence an incompatible pointer warning I hadn't noticed previously on OS 10.4.9. The man page also agrees that iconv() uses const char **. So ACK from me.
~~ Brian