From 0b413733121b8be7da927830ebe79a9a51249f09 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 6 Oct 2016 22:39:14 +0300 Subject: [PATCH] Avoid compiler warnings with MinGW runtime 3.22.2 * main.c: * job.c: Include strings.h, to get the prototypes of strcasecmp and strncasecmp with latest MinGW runtime versions. * config.h.W32.template (HAVE_STRINGS_H): Define. --- config.h.W32.template | 2 +- job.c | 1 + main.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.h.W32.template b/config.h.W32.template index d72e79a3..450be4fb 100644 --- a/config.h.W32.template +++ b/config.h.W32.template @@ -268,7 +268,7 @@ this program. If not, see . */ #define HAVE_STRICMP 1 /* Define to 1 if you have the header file. */ -/* #define HAVE_STRINGS_H 1 */ +#define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 diff --git a/job.c b/job.c index f3a9fdbe..4da0244c 100644 --- a/job.c +++ b/job.c @@ -29,6 +29,7 @@ this program. If not, see . */ /* Default shell to use. */ #ifdef WINDOWS32 +#include /* for strcasecmp, strncasecmp */ #include const char *default_shell = "sh.exe"; diff --git a/main.c b/main.c index fa8045fd..a1703edc 100644 --- a/main.c +++ b/main.c @@ -33,6 +33,7 @@ this program. If not, see . */ #ifdef WINDOWS32 # include # include +# include /* for strcasecmp */ # include "pathstuff.h" # include "sub_proc.h" # include "w32err.h" -- 2.47.3