freebsd-ports/print/ghostscript7/files/patch-src:genarch.c
Akinori MUSHA f239ea2914 ** ghostscript55 has been repocopied to ghostscript-gnu **
Update to GNU Ghostscript 6.51.

PR:		ports/29579
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
2001-09-11 19:12:20 +00:00

34 lines
733 B
C

--- 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");