freebsd-ports/benchmarks/bonnie++/files/patch-getc_putc.cpp
Pav Lucistnik d53f53c3b1 - Our other two 64-bit platforms needs min(int, int) workaround too
- Unmark broken as it builds on Bento at least for i386. I got some feedback
  that it builds with gcc 3.3.3, but not with 3.3.1

Tested by:	Koop Mast (on sparc64)
Approved by:	adamw (mentor)
2003-11-22 00:46:43 +00:00

15 lines
461 B
C++

--- 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__) || defined(__amd64__) || defined(__ia64__)
+/* 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"