From b908bd4e15336e705fff12f1a0fbf4a4c55e5d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Fri, 9 Jun 2000 16:43:49 +0000 Subject: [PATCH] Comment about bcopy on SunOS 4.x. --- e_os.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e_os.h b/e_os.h index f540d7752e..487f0b2fb3 100644 --- a/e_os.h +++ b/e_os.h @@ -404,10 +404,11 @@ extern HINSTANCE _hInstance; #endif #if defined(sun) && !defined(__svr4__) && !defined(__SVR4) + /* bcopy can handle overlapping moves according to SunOS 4.1.4 manpage */ # define memmove(s1,s2,n) bcopy((s2),(s1),(n)) # define strtoul(s,e,b) ((unsigned long int)strtol((s),(e),(b))) extern char *sys_errlist[]; extern int sys_nerr; -# define strerror(errnum) \ +# define strerror(errnum) \ (((errnum)<0 || (errnum)>=sys_nerr) ? NULL : sys_errlist[errnum]) #endif -- GitLab