Skip to content

Commit 8642be4

Browse files
committed
utils: add missing header
The build breaks because convert_ts is missing. Also utils.c depends on json_object_add_value_string, thus define one when we don't use json-c. Signed-off-by: Daniel Wagner <dwagner@suse.de>
1 parent b17b2d9 commit 8642be4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

util/json.h

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ uint64_t util_json_object_get_uint64(struct json_object *obj);
5656

5757
struct json_object;
5858

59+
#define json_object_add_value_string(o, k, v)
60+
5961
#endif
6062

6163
#endif

util/utils.c

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
*/
99

1010
#include "utils.h"
11+
#include "types.h"
12+
#include "json.h"
1113

1214
int hex_to_int(char c)
1315
{

0 commit comments

Comments
 (0)