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 <string.h>



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

description:
ksh: Drop support for systems without <string.h>

diffstat:

 bin/ksh/config.h |   5 +----
 bin/ksh/sh.h     |  12 +++---------
 2 files changed, 4 insertions(+), 13 deletions(-)

diffs (51 lines):

diff -r 2c3077b71268 -r b9ff3d8bd09d bin/ksh/config.h
--- a/bin/ksh/config.h  Thu Jun 22 23:19:53 2017 +0000
+++ b/bin/ksh/config.h  Thu Jun 22 23:23:27 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.h,v 1.21 2017/06/22 23:19:53 kamil Exp $        */
+/*     $NetBSD: config.h,v 1.22 2017/06/22 23:23:27 kamil Exp $        */
 
 /* config.h.  Generated automatically by configure.  */
 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
@@ -289,9 +289,6 @@
 /* Define if you have the <paths.h> header file.  */
 #define HAVE_PATHS_H 1
 
-/* Define if you have the <string.h> header file.  */
-#define HAVE_STRING_H 1
-
 /* Define if you have the <sys/dir.h> header file.  */
 #define HAVE_SYS_DIR_H
 
diff -r 2c3077b71268 -r b9ff3d8bd09d bin/ksh/sh.h
--- a/bin/ksh/sh.h      Thu Jun 22 23:19:53 2017 +0000
+++ b/bin/ksh/sh.h      Thu Jun 22 23:23:27 2017 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: sh.h,v 1.15 2017/06/22 23:19:53 kamil Exp $    */
+/*     $NetBSD: sh.h,v 1.16 2017/06/22 23:23:27 kamil Exp $    */
 
 /*
  * Public Domain Bourne/Korn shell
  */
 
-/* $Id: sh.h,v 1.15 2017/06/22 23:19:53 kamil Exp $ */
+/* $Id: sh.h,v 1.16 2017/06/22 23:23:27 kamil Exp $ */
 
 #include "config.h"    /* system and option configuration info */
 
@@ -22,14 +22,8 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <string.h>
 
-#ifdef HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-# define strchr index
-# define strrchr rindex
-#endif /* HAVE_STRING_H */
 #ifndef HAVE_STRSTR
 char *strstr ARGS((const char *s, const char *p));
 #endif /* HAVE_STRSTR */



Home | Main Index | Thread Index | Old Index