ports/154173: [PATCH]sysutils/rename: fix compilation with recent versions of gcc

b.f. bf at FreeBSD.org
Thu Jan 20 20:10:03 UTC 2011


>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:



More information about the freebsd-ports-bugs mailing list