json-c/7af593c140523efa04e863f3772f0632c7ffcde3.patch
2021-07-09 00:22:02 +02:00

29 lines
679 B
Diff

From 7af593c140523efa04e863f3772f0632c7ffcde3 Mon Sep 17 00:00:00 2001
From: Tobias Stoeckmann <tobias@stoeckmann.org>
Date: Fri, 11 Sep 2020 21:09:40 +0200
Subject: [PATCH] Fixed test1 regression.
SIZEOF_SIZE_T might be only defined in config.h.
Include config.h for these systems to pass tests which are only
supposed to be run on 32 bit systems.
Fixes issue #666.
---
tests/test1.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/test1.c b/tests/test1.c
index 7e41610561..4d2960146c 100644
--- a/tests/test1.c
+++ b/tests/test1.c
@@ -5,6 +5,8 @@
#include <stdlib.h>
#include <string.h>
+#include "config.h"
+
#include "json.h"
#include "parse_flags.h"