We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bf5bde commit ec263fdCopy full SHA for ec263fd
ext/iconv/iconv.c
@@ -43,9 +43,12 @@
43
#undef iconv
44
#endif
45
46
-#if defined(__NetBSD__)
+#if defined(__NetBSD__) || (defined(__sun) && !defined(_XPG6))
47
// unfortunately, netbsd has still the old non posix conformant signature
48
// libiconv tends to match the eventual system's iconv too.
49
+//
50
+// When the SUSv3 API is enabled, it switches to the alternative
51
+// iconv api signature.
52
#define ICONV_CONST const
53
#else
54
#define ICONV_CONST
0 commit comments