From be3bdba18c0873fc5f54742a12469a6ffbae9b12 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 19 Jul 2008 21:21:15 +0200 Subject: redirect gcc output to the proper original lines --- strpool.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/strpool.c b/strpool.c index 32f1ed7..51337bd 100644 --- a/strpool.c +++ b/strpool.c @@ -556,6 +556,10 @@ static int process(FILE *in, FILE *out, const char*ifname) { "#define _P(x) (_strpool_ + ((x) - (const char*) 0))\n" "#endif\n\n"); + + if (ifname) + fprintf(out, "#line 1 \"%s\"\n", ifname); + dump_text(out, first); fwrite(remain, 1, remain_size, out); -- cgit