mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07: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).
|
||||
// This enables us to still load and use iconv dynamically at runtime.
|
||||
#ifdef USE_ICONV
|
||||
# include <errno.h>
|
||||
# ifdef HAVE_ICONV_H
|
||||
# include <iconv.h>
|
||||
# else
|
||||
# include <errno.h>
|
||||
typedef void *iconv_t;
|
||||
# endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user