Adapt for NetBSD iconv() prototype change.
This commit is contained in:
parent
ec6c806717
commit
b0eefcda75
@ -29,7 +29,17 @@
|
||||
|
||||
/* Define to `const' or to empty, depending on the second argument of `iconv'. */
|
||||
#cmakedefine ICONV_ACCEPTS_CONST_INPUT
|
||||
#if defined(ICONV_ACCEPTS_CONST_INPUT) || defined(__NetBSD__)
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
#include <sys/param.h>
|
||||
#if __NetBSD_Prereq__(9,99,17)
|
||||
#define NETBSD_POSIX_ICONV 1
|
||||
#else
|
||||
#define NETBSD_POSIX_ICONV 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(ICONV_ACCEPTS_CONST_INPUT) || (defined(__NetBSD__) && !NETBSD_POSIX_ICONV)
|
||||
#define EXV_ICONV_CONST const
|
||||
#else
|
||||
#define EXV_ICONV_CONST
|
||||
|
||||
Loading…
Reference in New Issue
Block a user