Date: Thu, 20 Jan 2011 20:08:29 GMT From: "b.f." <bf@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/154173: [PATCH]sysutils/rename: fix compilation with recent versions of gcc Message-ID: <201101202008.p0KK8TEn028849@red.freebsd.org> Resent-Message-ID: <201101202010.p0KKA2xK062343@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 154173 >Category: ports >Synopsis: [PATCH]sysutils/rename: fix compilation with recent versions of gcc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 20 20:10:02 UTC 2011 >Closed-Date: >Last-Modified: >Originator: b.f. >Release: 9-CURRENT amd64 >Organization: - >Environment: >Description: Replace an if-less elif that causes some pre-processors to choke, including that of lang/gcc45. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: ports/sysutils/rename/files/patch-rename.c =================================================================== RCS file: ports/sysutils/rename/files/patch-rename.c diff -N ports/sysutils/rename/files/patch-rename.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ports/sysutils/rename/files/patch-rename.c 31 Dec 2010 13:21:46 -0000 @@ -0,0 +1,11 @@ +--- rename.c.orig 2010-12-31 08:19:44.000000000 -0500 ++++ rename.c 2010-12-31 08:19:58.000000000 -0500 +@@ -65,7 +65,7 @@ + + #if HAVE_REGEX_H + #include <regex.h> +-#elif ++#else + #include "regex.h" + #endif + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101202008.p0KK8TEn028849>