diff options
Diffstat (limited to 'devel/gob2/files/patch-src_out.c')
-rw-r--r-- | devel/gob2/files/patch-src_out.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/gob2/files/patch-src_out.c b/devel/gob2/files/patch-src_out.c new file mode 100644 index 000000000000..14f6637c68e4 --- /dev/null +++ b/devel/gob2/files/patch-src_out.c @@ -0,0 +1,16 @@ +--- src/out.c.orig 2009-07-10 16:43:05.000000000 +0200 ++++ src/out.c 2009-11-27 14:07:58.000000000 +0100 +@@ -69,6 +69,13 @@ + } else + g_assert_not_reached(); + ++ /* ++ * According to clang developers #line 0 is not allowed by the C spec. ++ * Gcc does accept it though. http://llvm.org/bugs/show_bug.cgi?id=5603 ++ */ ++ if (line == 0) ++ line += 1; ++ + fprintf(fp, "#line %d \"%s\"\n", line, filename); + } + |