Skip to contentSkip to conversation

Makefile: iconv() on Darwin has the old interface

PATCH In review Arjen Laarhoven 3 participants 3 messages Jun 15, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

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.

---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Makefile +1 -0
index ad321b3..2146403 100644
@@ -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
#1 lore raw

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?

#2 lore raw
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