mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
ef4fc524f8
The attached patch fixes security/sfs so it builds with gcc42. The only change I made that I am wary of is commenting out the LIBTOOL variable in ${WRKSRC}/sfsrwcd/Makefile. However, this seems to work fine on both 7.0-CURRENT and 6.2-STABLE. In addition, I would not mind maintaining the port. PR: ports/116389 Submitted by: Dave Grochowski <malus.x@gmail.com>
30 lines
801 B
C
30 lines
801 B
C
--- rpcc/rpcc.C.orig 2002-11-17 16:42:10.000000000 -0500
|
|
+++ rpcc/rpcc.C 2007-09-15 17:04:18.000000000 -0400
|
|
@@ -151,8 +151,8 @@
|
|
void (*fn) (str) = NULL;
|
|
int len;
|
|
|
|
- av.push_back (PATH_CPP);
|
|
- av.push_back ("-DRPCC");
|
|
+ av.push_back (const_cast<char *> (PATH_CPP));
|
|
+ av.push_back (const_cast<char *> ("-DRPCC"));
|
|
av.push_back (NULL);
|
|
|
|
for (an = 1; an < argc; an++) {
|
|
@@ -196,13 +196,13 @@
|
|
|
|
switch (mode) {
|
|
case HEADER:
|
|
- av[2] = "-DRPCC_H";
|
|
+ av[2] = const_cast<char *> ("-DRPCC_H");
|
|
fn = genheader;
|
|
if (!outfile)
|
|
outfile = strbuf ("%.*sh", len - 1, basename);
|
|
break;
|
|
case CFILE:
|
|
- av[2] = "-DRPCC_C";
|
|
+ av[2] = const_cast<char *> ("-DRPCC_C");
|
|
fn = gencfile;
|
|
if (!outfile)
|
|
outfile = strbuf ("%.*sC", len - 1, basename);
|