Skip to content

Commit 08c0506

Browse files
mroethkesmlng
authored andcommitted
tools: fix build error with mustach
mustach relies on transitive includes to work, this introduces a wrapping header that satisfies these
1 parent babdd7a commit 08c0506

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

third-party/mustach.h

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This file is part of RTRlib.
3+
*
4+
* This file is subject to the terms and conditions of the MIT license.
5+
* See the file LICENSE in the top level directory for more details.
6+
*
7+
* Website: http://rtrlib.realmv6.org/
8+
*/
9+
10+
/* fix missing include in the mustach header by including it first */
11+
12+
// clang-format off
13+
#include <stdio.h>
14+
#include "third-party/mustach/mustach.h"
15+
// clang-format on

tools/rtrclient.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include "rtrlib/rtrlib.h"
1313

14-
#include "third-party/mustach/mustach.h"
14+
#include "third-party/mustach.h"
1515
#include "third-party/tommyds/tommyarray.h"
1616
#include "third-party/tommyds/tommyhashlin.h"
1717

tools/templates.h.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* Website: http://rtrlib.realmv6.org/
88
*/
99

10+
#include <stddef.h>
11+
1012

1113
struct pfx_output_template {
1214
const char *name;

0 commit comments

Comments
 (0)