ksh: Drop support for systems without memset(3)
This commit is contained in:
parent
98fef8f2dd
commit
99f9f7cfb5
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: config.h,v 1.25 2017/06/22 23:29:35 kamil Exp $ */
|
/* $NetBSD: config.h,v 1.26 2017/06/22 23:30:42 kamil Exp $ */
|
||||||
|
|
||||||
/* config.h. Generated automatically by configure. */
|
/* config.h. Generated automatically by configure. */
|
||||||
/* config.h.in. Generated automatically from configure.in by autoheader. */
|
/* config.h.in. Generated automatically from configure.in by autoheader. */
|
||||||
@ -126,9 +126,6 @@
|
|||||||
/* Define if you have a sane <termios.h> header file */
|
/* Define if you have a sane <termios.h> header file */
|
||||||
#define HAVE_TERMIOS_H 1
|
#define HAVE_TERMIOS_H 1
|
||||||
|
|
||||||
/* Define if you have a memset() function in your C library */
|
|
||||||
#define HAVE_MEMSET 1
|
|
||||||
|
|
||||||
/* Define if you have a memmove() function in your C library */
|
/* Define if you have a memmove() function in your C library */
|
||||||
#define HAVE_MEMMOVE 1
|
#define HAVE_MEMMOVE 1
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/* $NetBSD: sh.h,v 1.19 2017/06/22 23:29:35 kamil Exp $ */
|
/* $NetBSD: sh.h,v 1.20 2017/06/22 23:30:42 kamil Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Public Domain Bourne/Korn shell
|
* Public Domain Bourne/Korn shell
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: sh.h,v 1.19 2017/06/22 23:29:35 kamil Exp $ */
|
/* $Id: sh.h,v 1.20 2017/06/22 23:30:42 kamil Exp $ */
|
||||||
|
|
||||||
#include "config.h" /* system and option configuration info */
|
#include "config.h" /* system and option configuration info */
|
||||||
|
|
||||||
@ -24,11 +24,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef HAVE_MEMSET
|
|
||||||
# define memcpy(d, s, n) bcopy(s, d, n)
|
|
||||||
# define memcmp(s1, s2, n) bcmp(s1, s2, n)
|
|
||||||
void *memset ARGS((void *d, int c, size_t n));
|
|
||||||
#endif /* HAVE_MEMSET */
|
|
||||||
#ifndef HAVE_MEMMOVE
|
#ifndef HAVE_MEMMOVE
|
||||||
# ifdef HAVE_BCOPY
|
# ifdef HAVE_BCOPY
|
||||||
# define memmove(d, s, n) bcopy(s, d, n)
|
# define memmove(d, s, n) bcopy(s, d, n)
|
||||||
|
Loading…
Reference in New Issue
Block a user