Browse Source

修复在GCC下没有包含strings.h的问题 #23

Meco Man 4 years ago
parent
commit
b3baddedbb
1 changed files with 3 additions and 0 deletions
  1. 3 0
      vi.c

+ 3 - 0
vi.c

@@ -2249,6 +2249,9 @@ static char *char_search(char *p, const char *pat, int dir_and_range)
 # else
 
 #  if ENABLE_FEATURE_VI_SETOPTS
+#ifdef __GNUC__
+#include <strings.h>
+#endif
 static int mycmp(const char *s1, const char *s2, int len)
 {
     if (ignorecase) {