summaryrefslogtreecommitdiff
path: root/src/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2023-01-07 21:59:16 -0500
committerPaul Smith <psmith@gnu.org>2023-01-08 10:24:09 -0500
commit1656cd051c7f28de359b1f188b20a5a688004267 (patch)
treeba4c83df394510b2a324b39ccf028778737f9f7f /src/job.c
parent31a1337c2386f7def3d079e8d044443ba093ba92 (diff)
downloadmake-git-1656cd051c7f28de359b1f188b20a5a688004267.tar.gz
Include <strings.h> globally
Various code uses str{,n}casecmp() so include <strings.h>, if it exists, everywhere. * configure.ac: Check for <strings.h> explicitly. * src/makeint.h: Include it if HAVE_STRINGS_H, for str{,n}casecmp(). * src/job.c: Remove include of <strings.h>. * src/main.c: Ditto.
Diffstat (limited to 'src/job.c')
-rw-r--r--src/job.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/job.c b/src/job.c
index 35fbda00..a42c426c 100644
--- a/src/job.c
+++ b/src/job.c
@@ -30,9 +30,6 @@ this program. If not, see <https://www.gnu.org/licenses/>. */
/* Default shell to use. */
#ifdef WINDOWS32
-# ifdef HAVE_STRINGS_H
-# include <strings.h> /* for strcasecmp, strncasecmp */
-# endif
# include <windows.h>
const char *default_shell = "sh.exe";