diff options
author | James McCoy <jamessan@jamessan.com> | 2016-08-25 22:02:40 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-08-25 22:02:40 -0400 |
commit | 48dbb75ff698058e1c9e395385a6ca0b9a4e92d8 (patch) | |
tree | d5f3fedcd03ef2c199d37e7f7f58afcefc037861 /src | |
parent | 7bc627b3c8d53e0f45985b35835e0b339dd2c006 (diff) | |
download | rneovim-48dbb75ff698058e1c9e395385a6ca0b9a4e92d8.tar.gz rneovim-48dbb75ff698058e1c9e395385a6ca0b9a4e92d8.tar.bz2 rneovim-48dbb75ff698058e1c9e395385a6ca0b9a4e92d8.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/iconv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/iconv.h b/src/nvim/iconv.h index 4ac0d3fdd4..bf29b15247 100644 --- a/src/nvim/iconv.h +++ b/src/nvim/iconv.h @@ -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 |