opnsense-ports/devel/gob2/files/patch-src_out.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

16 lines
411 B
C

--- 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);
}