diff --git a/Makefile b/Makefile index 64d7f49019..0f3460567b 100644 --- a/Makefile +++ b/Makefile @@ -427,7 +427,7 @@ ifneq (,$(findstring MINGW,$(uname_S))) NO_ICONV=YesPlease COMPAT_CFLAGS += -DNO_ETC_PASSWD -DNO_ST_BLOCKS COMPAT_OBJS += compat/mingw.o - EXTLIBS += -lws2_32 + EXTLIBS += -lws2_32 -lregex X = .exe endif ifneq (,$(findstring arm,$(uname_M))) diff --git a/compat/mingw.c b/compat/mingw.c index f85b0d2f52..d2e83f74a3 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -98,23 +98,6 @@ int fnmatch(const char *pattern, const char *string, int flags) return -1; } -int regcomp(regex_t *preg, const char *regex, int cflags) -{ - return -1; -} -size_t regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) -{ - return 0; -} -void regfree(regex_t *preg) -{ -} - -int regexec(const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags) -{ - return -1; -} - #include struct tm *gmtime_r(const time_t *timep, struct tm *result)