From 2905cce16aef2da2549993f1877f110ed4d043ff Mon Sep 17 00:00:00 2001 From: "Joseph S. Atkinson" Date: Wed, 16 Mar 2011 19:32:21 +0000 Subject: [PATCH] Fix when building with GCC 4.5. While here, fix gripe with clang and a few typos. PR: ports/154173 Submitted by: bf Approved by: kwm (mentor) --- sysutils/rename/Makefile | 1 + sysutils/rename/files/patch-rename.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 sysutils/rename/files/patch-rename.c diff --git a/sysutils/rename/Makefile b/sysutils/rename/Makefile index 29927975084c..c3f1b149b136 100644 --- a/sysutils/rename/Makefile +++ b/sysutils/rename/Makefile @@ -7,6 +7,7 @@ PORTNAME= rename PORTVERSION= 1.3 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://mirror2.unixfreunde.de/ \ http://freebsd.unixfreunde.de/sources/ diff --git a/sysutils/rename/files/patch-rename.c b/sysutils/rename/files/patch-rename.c new file mode 100644 index 000000000000..17a74c2fd911 --- /dev/null +++ b/sysutils/rename/files/patch-rename.c @@ -0,0 +1,28 @@ +--- ./rename.c.orig 2002-05-20 11:50:50.000000000 -0400 ++++ ./rename.c 2011-03-13 05:05:52.000000000 -0400 +@@ -65,7 +65,7 @@ + + #if HAVE_REGEX_H + #include +-#elif ++#else + #include "regex.h" + #endif + +@@ -608,7 +608,7 @@ + + skip: + if (attr & MOD_VERBO) +- printf("skiped\n"); ++ printf("skipped\n"); + return rs; + } + +@@ -659,6 +659,6 @@ + if (mode) + printf(version, VERSION); + else +- printf(help); ++ printf("%s", help); + } +