pkgsrc/devel/gob2/patches/patch-src_main_c
dholland 85c16edea6 Fix bug that was emitting #line directives with a line number of 0, which
clang strenuously objects to. Fixes clang build of audio/gmpc and maybe
others. PKGREVISION -> 2.
2011-08-01 05:03:44 +00:00

23 lines
763 B
Text

$NetBSD: patch-src_main_c,v 1.1 2011/08/01 05:03:45 dholland Exp $
Avoid generating "#line 0" as clang objects strenuously. This patch
fixes two cases that audio/gmpc ran into.
--- src/main.c.orig 2011-01-03 19:50:33.000000000 +0000
+++ src/main.c
@@ -652,6 +652,7 @@ make_inits(Class *cl)
"method", CLASS_INIT_METHOD,
"mtype:steal", type,
"id", "class_init",
+ "line_no", 1,
"args:steal", make_func_arg (cl->otype,
TRUE /* is_class */,
"c" /* name */),
@@ -668,6 +669,7 @@ make_inits(Class *cl)
"method", INIT_METHOD,
"mtype:steal", type,
"id", "init",
+ "line_no", 1,
"args:steal", make_func_arg (cl->otype,
FALSE /* is_class */,
"o" /* name */),