diff options
author | obrien <obrien@FreeBSD.org> | 2003-03-06 06:40:38 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-03-06 06:40:38 +0800 |
commit | 5b806121d28b87cba46d3c9e99b6a920f5f787aa (patch) | |
tree | 99dca6cc9ad0ccc3114f0e0d606d79f348145c2d /benchmarks | |
parent | 1dd7ad89b3fb5a24750405e29c3d5284437c9ef2 (diff) | |
download | freebsd-ports-gnome-5b806121d28b87cba46d3c9e99b6a920f5f787aa.tar.gz freebsd-ports-gnome-5b806121d28b87cba46d3c9e99b6a920f5f787aa.tar.zst freebsd-ports-gnome-5b806121d28b87cba46d3c9e99b6a920f5f787aa.zip |
Fix the build on 64-bit machines.
The STL provides a min(unsigned, unsigned) implimentation by default,
but not a min(unsigned long, unsigned) one.
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/bonnie++/files/patch-getc_putc.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/benchmarks/bonnie++/files/patch-getc_putc.cpp b/benchmarks/bonnie++/files/patch-getc_putc.cpp new file mode 100644 index 000000000000..fbabf3e53905 --- /dev/null +++ b/benchmarks/bonnie++/files/patch-getc_putc.cpp @@ -0,0 +1,15 @@ +--- getc_putc.cpp.orig Sun Dec 9 06:50:24 2001 ++++ getc_putc.cpp Wed Mar 5 14:32:58 2003 +@@ -17,6 +17,12 @@ + #include "duration.h" + #include "getc_putc.h" + ++#if defined(__alpha__) || defined(__sparc64__) ++/* Work around for: line 168, no matching function for call to `min(long unsigned int, unsigned int)' */ ++#include <sys/param.h> ++#define min MIN ++#endif ++ + static void usage() + { + fprintf(stderr, "usage:\n" |