Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ksh ksh: Drop support for systems without strstr(3)



details:   https://anonhg.NetBSD.org/src/rev/f07d0914c135
branches:  trunk
changeset: 824915:f07d0914c135
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Jun 22 23:26:17 2017 +0000

description:
ksh: Drop support for systems without strstr(3)

diffstat:

 bin/ksh/config.h |  5 +----
 bin/ksh/sh.h     |  7 ++-----
 2 files changed, 3 insertions(+), 9 deletions(-)

diffs (45 lines):

diff -r b9ff3d8bd09d -r f07d0914c135 bin/ksh/config.h
--- a/bin/ksh/config.h  Thu Jun 22 23:23:27 2017 +0000
+++ b/bin/ksh/config.h  Thu Jun 22 23:26:17 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.h,v 1.22 2017/06/22 23:23:27 kamil Exp $        */
+/*     $NetBSD: config.h,v 1.23 2017/06/22 23:26:17 kamil Exp $        */
 
 /* config.h.  Generated automatically by configure.  */
 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
@@ -250,9 +250,6 @@
 /* Define if you have the strerror function.  */
 #define HAVE_STRERROR 1
 
-/* Define if you have the strstr function.  */
-#define HAVE_STRSTR 1
-
 /* Define if you have the sysconf function.  */
 #define HAVE_SYSCONF 1
 
diff -r b9ff3d8bd09d -r f07d0914c135 bin/ksh/sh.h
--- a/bin/ksh/sh.h      Thu Jun 22 23:23:27 2017 +0000
+++ b/bin/ksh/sh.h      Thu Jun 22 23:26:17 2017 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: sh.h,v 1.16 2017/06/22 23:23:27 kamil Exp $    */
+/*     $NetBSD: sh.h,v 1.17 2017/06/22 23:26:17 kamil Exp $    */
 
 /*
  * Public Domain Bourne/Korn shell
  */
 
-/* $Id: sh.h,v 1.16 2017/06/22 23:23:27 kamil Exp $ */
+/* $Id: sh.h,v 1.17 2017/06/22 23:26:17 kamil Exp $ */
 
 #include "config.h"    /* system and option configuration info */
 
@@ -24,9 +24,6 @@
 #include <unistd.h>
 #include <string.h>
 
-#ifndef HAVE_STRSTR
-char *strstr ARGS((const char *s, const char *p));
-#endif /* HAVE_STRSTR */
 #ifndef HAVE_STRCASECMP
 int strcasecmp ARGS((const char *s1, const char *s2));
 int strncasecmp ARGS((const char *s1, const char *s2, int n));



Home | Main Index | Thread Index | Old Index