diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2015-12-15 23:09:12 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-12-17 10:02:35 +0100 |
commit | 31cab05faab92a2f0062b4833547083621d85678 (patch) | |
tree | d68c51ecf69f457654ad49ee805833407125d166 /bpf_parser.y | |
parent | 52726714c29c3442d3675da4fe888d565988d5db (diff) |
cpp: Allow to pass additional cpp options
Extend cpp_exec function with args parameter to
specify additional cpp options (like -D).
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'bpf_parser.y')
-rw-r--r-- | bpf_parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bpf_parser.y b/bpf_parser.y index 003c031..7331cc5 100644 --- a/bpf_parser.y +++ b/bpf_parser.y @@ -745,7 +745,7 @@ int compile_filter(char *file, int verbose, int bypass, int format, memset(tmp_file, 0, sizeof(tmp_file)); if (invoke_cpp) { - ret = cpp_exec(file, tmp_file, sizeof(tmp_file)); + ret = cpp_exec(file, tmp_file, sizeof(tmp_file), NULL); if (ret) { fprintf(stderr, "Failed to invoke C preprocessor!\n"); goto exit; |