summaryrefslogtreecommitdiff
path: root/benchmarks/xdd/files/patch-parse.c
diff options
context:
space:
mode:
authorMichael Scheidell <scheidell@FreeBSD.org>2012-04-15 11:43:13 +0000
committerMichael Scheidell <scheidell@FreeBSD.org>2012-04-15 11:43:13 +0000
commitf72153f000874e7008fe18d16a3cfe1a0e71ca97 (patch)
treeb6cc4c63eb9263b64789a00a6bff16dd73d983f2 /benchmarks/xdd/files/patch-parse.c
parentRemove expiration date, a false positive in my last commit. (diff)
- Enhances detection of CPU count
- fixes compile time warnings with string.hg not being included in xdd.h PR: ports/165197 Submitted by: Garrett Cooper <yanegomi@gmail.com> Approved by: g.gonter@ieee.org (maintainer, timeout 60 days)
Notes
Notes: svn path=/head/; revision=294846
Diffstat (limited to 'benchmarks/xdd/files/patch-parse.c')
-rw-r--r--benchmarks/xdd/files/patch-parse.c31
1 files changed, 29 insertions, 2 deletions
diff --git a/benchmarks/xdd/files/patch-parse.c b/benchmarks/xdd/files/patch-parse.c
index a31bd2fa4820..a63e309619f2 100644
--- a/benchmarks/xdd/files/patch-parse.c
+++ b/benchmarks/xdd/files/patch-parse.c
@@ -1,5 +1,5 @@
---- parse.c.orig Fri Mar 16 07:10:44 2007
-+++ parse.c Fri Mar 16 07:11:44 2007
+--- parse.c.orig 2012-02-15 22:02:57.832134671 -0800
++++ parse.c 2012-02-15 22:02:57.878141191 -0800
@@ -810,7 +810,7 @@
xddfunc_delay(int32_t argc, char *argv[])
{
@@ -18,3 +18,30 @@
}
/*----------------------------------------------------------------------------*/
// Set the maximum runtime priority
+@@ -1448,7 +1448,7 @@
+ #if (LINUXUP || HPUX || OSX)
+ cpus = 1;
+ fprintf(xgp->errout,"%s: WARNING: Multiple processors not supported in this release\n",xgp->progname);
+-#elif (SOLARIS || AIX)
++#elif (SOLARIS || AIX || FreeBSD)
+ /* SOLARIS or AIX */
+ cpus = sysconf(_SC_NPROCESSORS_ONLN);
+ #elif (IRIX || WIN32)
+@@ -1764,7 +1764,7 @@
+ #if (LINUXUP || HPUX || OSX)
+ cpus = 1;
+ fprintf(xgp->errout,"%s: WARNING: Multiple processors not supported in this release\n",xgp->progname);
+-#elif (SOLARIS || AIX)
++#elif (SOLARIS || AIX || FreeBSD)
+ /* SOLARIS or AIX */
+ cpus = sysconf(_SC_NPROCESSORS_ONLN);
+ #elif (IRIX || WIN32)
+@@ -2057,7 +2057,7 @@
+ #if (LINUXUP || HPUX || OSX)
+ cpus = 1;
+ fprintf(xgp->errout,"%s: WARNING: Multiple processors not supported in this release\n",xgp->progname);
+-#elif (SOLARIS || AIX)
++#elif (SOLARIS || AIX || FreeBSD)
+ /* SOLARIS or AIX */
+ cpus = sysconf(_SC_NPROCESSORS_ONLN);
+ #elif (IRIX || WIN32)