mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
iconv: Always include errno.h when USE_ICONV is defined (#5251)
When USE_ICONV is defined, iconv.h references various errno constants, but errno.h is only being included when HAVE_ICONV_H is not defined. This causes build failures on at least GNU/Hurd.
This commit is contained in:
parent
7bc627b3c8
commit
48dbb75ff6
@ -24,10 +24,10 @@
|
|||||||
// defined, we provide a type shim (pull in errno.h and define iconv_t).
|
// defined, we provide a type shim (pull in errno.h and define iconv_t).
|
||||||
// This enables us to still load and use iconv dynamically at runtime.
|
// This enables us to still load and use iconv dynamically at runtime.
|
||||||
#ifdef USE_ICONV
|
#ifdef USE_ICONV
|
||||||
|
# include <errno.h>
|
||||||
# ifdef HAVE_ICONV_H
|
# ifdef HAVE_ICONV_H
|
||||||
# include <iconv.h>
|
# include <iconv.h>
|
||||||
# else
|
# else
|
||||||
# include <errno.h>
|
|
||||||
typedef void *iconv_t;
|
typedef void *iconv_t;
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user