aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/config.h.in1
-rw-r--r--src/vim.h9
2 files changed, 2 insertions, 8 deletions
diff --git a/config/config.h.in b/config/config.h.in
index 28180301cb..8a9946f656 100644
--- a/config/config.h.in
+++ b/config/config.h.in
@@ -61,7 +61,6 @@
#define HAVE_SIGVEC 1
#define HAVE_ST_BLKSIZE 1
#define HAVE_STRCASECMP 1
-#define HAVE_STRERROR 1
#define HAVE_STRFTIME 1
#define HAVE_STRING_H 1
#define HAVE_STRINGS_H 1
diff --git a/src/vim.h b/src/vim.h
index c408b7ce07..b7ccf4289a 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1093,13 +1093,8 @@ typedef enum {
/* Prefer using emsg3(), because perror() may send the output to the wrong
* destination and mess up the screen. */
-#ifdef HAVE_STRERROR
-# define PERROR(msg) (void)emsg3((char_u *)"%s: %s", \
- (char_u *)msg, (char_u *)strerror( \
- errno))
-#else
-# define PERROR(msg) perror(msg)
-#endif
+#define PERROR(msg) \
+ (void) emsg3((char_u *) "%s: %s", (char_u *)msg, (char_u *)strerror(errno))
typedef long linenr_T; /* line number type */
typedef int colnr_T; /* column number type */