pkgsrc/textproc/grep/patches/patch-aa
tnn b2a41f8ca2 MIPSPro doesn't like code such as:
void foo(void) {}
void bar(void) { return foo(); }

Stripping away the return makes it happy. PR pkg/38210.
2008-03-11 02:18:22 +00:00

26 lines
671 B
Text

$NetBSD: patch-aa,v 1.5 2008/03/11 02:18:22 tnn Exp $
--- src/search.c.orig 2007-06-28 20:57:19.000000000 +0200
+++ src/search.c
@@ -280,18 +280,18 @@ GEAcompile (char const *pattern, size_t
#ifndef EGREP_PROGRAM
COMPILE_FCT(Gcompile)
{
- return GEAcompile (pattern, size,
+ GEAcompile (pattern, size,
RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE);
}
COMPILE_FCT(Acompile)
{
- return GEAcompile (pattern, size, RE_SYNTAX_AWK);
+ GEAcompile (pattern, size, RE_SYNTAX_AWK);
}
COMPILE_FCT(Ecompile)
{
- return GEAcompile (pattern, size, RE_SYNTAX_POSIX_EGREP);
+ GEAcompile (pattern, size, RE_SYNTAX_POSIX_EGREP);
}
#endif /* !EGREP_PROGRAM */