diff options
Diffstat (limited to 'benchmarks/ubench/patches/patch-ubench_c')
-rw-r--r-- | benchmarks/ubench/patches/patch-ubench_c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/benchmarks/ubench/patches/patch-ubench_c b/benchmarks/ubench/patches/patch-ubench_c new file mode 100644 index 00000000000..345fbc87a22 --- /dev/null +++ b/benchmarks/ubench/patches/patch-ubench_c @@ -0,0 +1,30 @@ +$NetBSD: patch-ubench_c,v 1.1 2012/06/23 18:33:39 dholland Exp $ + +Use strerror(), not sys_errlist[]. + +--- ubench.c~ 2000-05-29 03:07:21.000000000 +0000 ++++ ubench.c +@@ -29,14 +29,6 @@ + #include <sys/utsname.h> + #include <limits.h> + +-#if defined HPUX || defined _AIX +-extern char *sys_errlist[]; +-#endif +-#ifdef SunOS +-extern char *_sys_errlist[]; +-#define sys_errlist _sys_errlist +-#endif +- + int cpubench(); + int membench(); + #ifdef DISKNETYES +@@ -138,7 +130,7 @@ prgs: switch ( argc[i][s] ) + signalSetup(); + print_version(); + if ( uname(&utsbuf) == -1 ) +- fprintf(stderr,"**** ubench: uname: %s\n",sys_errlist[errno]); ++ fprintf(stderr,"**** ubench: uname: %s\n", strerror(errno)); + else + { + #if defined HPUX |