From 1a8a092d9fefcbd7f960c82c59802c61807867a6 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Fri, 17 Jun 2016 23:28:04 +0000 Subject: Rename all files containing a : in their filename. While there, run make makepatch on affected ports, and rename patches accordingly. Sponsored by: Absolight --- print/ghostscript7-x11/files/patch-src_genarch.c | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 print/ghostscript7-x11/files/patch-src_genarch.c (limited to 'print/ghostscript7-x11/files/patch-src_genarch.c') diff --git a/print/ghostscript7-x11/files/patch-src_genarch.c b/print/ghostscript7-x11/files/patch-src_genarch.c new file mode 100644 index 000000000000..e7a7d84acc52 --- /dev/null +++ b/print/ghostscript7-x11/files/patch-src_genarch.c @@ -0,0 +1,34 @@ +--- 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"); + -- cgit v1.2.3