Module Name: src
Committed By: kamil
Date: Thu Jun 22 23:27:53 UTC 2017
Modified Files:
src/bin/ksh: config.h sh.h
Log Message:
ksh: Drop support for systems without strcasecmp(3) and strncasecmp(3)
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/bin/ksh/config.h
cvs rdiff -u -r1.17 -r1.18 src/bin/ksh/sh.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/ksh/config.h
diff -u src/bin/ksh/config.h:1.23 src/bin/ksh/config.h:1.24
--- src/bin/ksh/config.h:1.23 Thu Jun 22 23:26:17 2017
+++ src/bin/ksh/config.h Thu Jun 22 23:27:53 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: config.h,v 1.23 2017/06/22 23:26:17 kamil Exp $ */
+/* $NetBSD: config.h,v 1.24 2017/06/22 23:27:53 kamil Exp $ */
/* config.h. Generated automatically by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
@@ -244,9 +244,6 @@
/* Define if you have the sigsetjmp function. */
#define HAVE_SIGSETJMP 1
-/* Define if you have the strcasecmp function. */
-#define HAVE_STRCASECMP 1
-
/* Define if you have the strerror function. */
#define HAVE_STRERROR 1
Index: src/bin/ksh/sh.h
diff -u src/bin/ksh/sh.h:1.17 src/bin/ksh/sh.h:1.18
--- src/bin/ksh/sh.h:1.17 Thu Jun 22 23:26:17 2017
+++ src/bin/ksh/sh.h Thu Jun 22 23:27:53 2017
@@ -1,10 +1,10 @@
-/* $NetBSD: sh.h,v 1.17 2017/06/22 23:26:17 kamil Exp $ */
+/* $NetBSD: sh.h,v 1.18 2017/06/22 23:27:53 kamil Exp $ */
/*
* Public Domain Bourne/Korn shell
*/
-/* $Id: sh.h,v 1.17 2017/06/22 23:26:17 kamil Exp $ */
+/* $Id: sh.h,v 1.18 2017/06/22 23:27:53 kamil Exp $ */
#include "config.h" /* system and option configuration info */
@@ -24,11 +24,6 @@
#include <unistd.h>
#include <string.h>
-#ifndef HAVE_STRCASECMP
-int strcasecmp ARGS((const char *s1, const char *s2));
-int strncasecmp ARGS((const char *s1, const char *s2, int n));
-#endif /* HAVE_STRCASECMP */
-
#ifdef HAVE_MEMORY_H
# include <memory.h>
#endif