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 usage of SVID header <memory.h>, it's lega...



details:   https://anonhg.NetBSD.org/src/rev/9c74fa63ebef
branches:  trunk
changeset: 824917:9c74fa63ebef
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Jun 22 23:29:35 2017 +0000

description:
ksh: Drop usage of SVID header <memory.h>, it's legacy standard

diffstat:

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

diffs (45 lines):

diff -r 4bfe8b6dae28 -r 9c74fa63ebef bin/ksh/config.h
--- a/bin/ksh/config.h  Thu Jun 22 23:27:53 2017 +0000
+++ b/bin/ksh/config.h  Thu Jun 22 23:29:35 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.h,v 1.24 2017/06/22 23:27:53 kamil Exp $        */
+/*     $NetBSD: config.h,v 1.25 2017/06/22 23:29:35 kamil Exp $        */
 
 /* config.h.  Generated automatically by configure.  */
 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
@@ -274,9 +274,6 @@
 /* Define if you have the <limits.h> header file.  */
 #define HAVE_LIMITS_H 1
 
-/* Define if you have the <memory.h> header file.  */
-#define HAVE_MEMORY_H 1
-
 /* Define if you have the <ndir.h> header file.  */
 /* #undef HAVE_NDIR_H */
 
diff -r 4bfe8b6dae28 -r 9c74fa63ebef bin/ksh/sh.h
--- a/bin/ksh/sh.h      Thu Jun 22 23:27:53 2017 +0000
+++ b/bin/ksh/sh.h      Thu Jun 22 23:29:35 2017 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: sh.h,v 1.18 2017/06/22 23:27:53 kamil Exp $    */
+/*     $NetBSD: sh.h,v 1.19 2017/06/22 23:29:35 kamil Exp $    */
 
 /*
  * Public Domain Bourne/Korn shell
  */
 
-/* $Id: sh.h,v 1.18 2017/06/22 23:27:53 kamil Exp $ */
+/* $Id: sh.h,v 1.19 2017/06/22 23:29:35 kamil Exp $ */
 
 #include "config.h"    /* system and option configuration info */
 
@@ -24,9 +24,6 @@
 #include <unistd.h>
 #include <string.h>
 
-#ifdef HAVE_MEMORY_H
-# include <memory.h>
-#endif
 #ifndef HAVE_MEMSET
 # define memcpy(d, s, n)       bcopy(s, d, n)
 # define memcmp(s1, s2, n)     bcmp(s1, s2, n)



Home | Main Index | Thread Index | Old Index