summaryrefslogtreecommitdiff
path: root/print/ghostscript7/files/patch-src:genarch.c
blob: a015e69e758a70b6bbae190051185eb21a937753 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- src/genarch.c.orig	Tue Jun  5 15:38:57 2001
+++ src/genarch.c	Wed Jun 20 04:17:42 2001
@@ -41,6 +41,7 @@
     fprintf(f, "\n\t /* ---------------- %s ---------------- */\n\n", str);
 }
 
+#ifndef __FreeBSD__
 private clock_t
 time_clear(char *buf, int bsize, int nreps)
 {
@@ -51,6 +52,7 @@
 	memset(buf, 0, bsize);
     return clock() - t;
 }
+#endif /* __FreeBSD__ */
 
 private void
 define(FILE *f, const char *str)
@@ -181,6 +183,7 @@
     fprintf(f, "((unsigned long)~0L + (unsigned long)0)\n");
 #undef PRINT_MAX
 
+#ifndef __FreeBSD__
     section(f, "Cache sizes");
 
     /*
@@ -241,6 +244,7 @@
 	}
 	define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1);
     }
+#endif /* __FreeBSD__ */
 
     section(f, "Miscellaneous");