ports/print/ghostscript7-x11/files/patch-src_genarch.c
Mathieu Arnold 1a8a092d9f Rename all files containing a : in their filename.
While there, run make makepatch on affected ports, and rename patches
accordingly.

Sponsored by:	Absolight
2016-06-17 23:28:04 +00:00

34 lines
841 B
C

--- src/genarch.c.orig 2003-01-17 00:49:02 UTC
+++ src/genarch.c
@@ -40,6 +40,7 @@ section(FILE * f, const char *str)
fprintf(f, "\n\t /* ---------------- %s ---------------- */\n\n", str);
}
+#ifndef __FreeBSD__
private clock_t
time_clear(char *buf, int bsize, int nreps)
{
@@ -50,6 +51,7 @@ time_clear(char *buf, int bsize, int nre
memset(buf, 0, bsize);
return clock() - t;
}
+#endif /* __FreeBSD__ */
private void
define(FILE *f, const char *str)
@@ -180,6 +182,7 @@ main(int argc, char *argv[])
fprintf(f, "((unsigned long)~0L + (unsigned long)0)\n");
#undef PRINT_MAX
+#ifndef __FreeBSD__
section(f, "Cache sizes");
/*
@@ -240,6 +243,7 @@ main(int argc, char *argv[])
}
define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1);
}
+#endif /* __FreeBSD__ */
section(f, "Miscellaneous");