$OpenBSD: patch-lib_cunit_cu_tester_c,v 1.1 2021/02/08 09:50:22 landry Exp $

fix for -fno-common
https://github.com/pgpointcloud/pointcloud/pull/273

Index: lib/cunit/cu_tester.c
--- lib/cunit/cu_tester.c.orig
+++ lib/cunit/cu_tester.c
@@ -12,6 +12,9 @@
 #include "CUnit/Basic.h"
 #include "cu_tester.h"
 
+/* Contains the most recent error message generated by rterror. */
+static char cu_error_msg[MAX_CUNIT_MSG_LENGTH+1];
+
 /* ADD YOUR SUITE HERE (1 of 2) */
 extern CU_SuiteInfo schema_suite;
 extern CU_SuiteInfo patch_suite;
