summaryrefslogtreecommitdiff
path: root/benchmarks/bonnie++/files/patch-getc_putc.cpp
blob: bad9550b09382462936599075d0e1e500f8fc6b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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__) || 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"