4744ffd1dd
it keeps spewing: error: Expected ) in function declarator error: got , or: error: got "GCC visibility push(default)" if we tolerate more warnings and errors, it can be filtered out later on. one patch from pkgsrc itself. describe patch for not dying on missing includes
17 lines
552 B
C
17 lines
552 B
C
$NetBSD$
|
|
|
|
don't die on missing includes. matters for netbsd for which
|
|
opt_ files are generated by configs.
|
|
|
|
--- pre-process.c.orig 2014-02-16 22:44:57.000000000 +0000
|
|
+++ pre-process.c
|
|
@@ -933,7 +933,8 @@ static int handle_include_path(struct st
|
|
if (do_include_path(path, list, token, filename, flen))
|
|
return 0;
|
|
out:
|
|
- error_die(token->pos, "unable to open '%s'", filename);
|
|
+ sparse_error(token->pos, "unable to open '%s'", filename);
|
|
+ return -1;
|
|
}
|
|
|
|
static int handle_include(struct stream *stream, struct token **list, struct token *token)
|