[BACK]Return to patch-ubench_c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / benchmarks / ubench / patches

File: [cvs.NetBSD.org] / pkgsrc / benchmarks / ubench / patches / patch-ubench_c (download)

Revision 1.1, Sat Jun 23 18:33:39 2012 UTC (10 years, 7 months ago) by dholland
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, HEAD

Fix broken Solaris build by not using sys_errlist[]. One minor other
fix to pass -Wall.

$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[];
-#ifdef SunOS
-extern char *_sys_errlist[];
-#define sys_errlist _sys_errlist
 int	cpubench();
 int	membench();
@@ -138,7 +130,7 @@ prgs: switch ( argc[i][s] )
   if ( uname(&utsbuf) == -1 )
-    fprintf(stderr,"****  ubench: uname: %s\n",sys_errlist[errno]);
+    fprintf(stderr,"****  ubench: uname: %s\n", strerror(errno));
 #if defined HPUX