From 48dbb75ff698058e1c9e395385a6ca0b9a4e92d8 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Thu, 25 Aug 2016 22:02:40 -0400 Subject: 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. --- src/nvim/iconv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 # ifdef HAVE_ICONV_H # include # else -# include typedef void *iconv_t; # endif #endif -- cgit