RT also said what was missing on SunOS 4.1.1 (it also needs -DMKSH_UNEMPLOYED?)

This commit is contained in:
tg
2012-12-17 22:14:27 +00:00
parent b8d3f12025
commit 4c5d7094ef
3 changed files with 51 additions and 4 deletions

11
sh.h
View File

@ -160,7 +160,7 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.616 2012/12/17 21:55:06 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.617 2012/12/17 22:14:26 tg Exp $");
#endif
#define MKSH_VERSION "R41 2012/12/07"
@ -354,10 +354,19 @@ extern int flock(int, int);
extern int getrusage(int, struct rusage *);
#endif
#if !HAVE_MEMMOVE
/* we assume either memmove or bcopy exist, at the moment */
#define memmove(dst, src, len) bcopy((src), (dst), (len))
#endif
#if !HAVE_REVOKE_DECL
extern int revoke(const char *);
#endif
#if !HAVE_STRERROR
extern char *strerror(int);
#endif
#if !HAVE_STRLCPY
size_t strlcpy(char *, const char *, size_t);
#endif