$OpenBSD: patch-lib_cunit_cu_tester_h,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.h
--- lib/cunit/cu_tester.h.orig
+++ lib/cunit/cu_tester.h
@@ -7,6 +7,9 @@
 *
 ***********************************************************************/
 
+#ifndef _CU_TESTER_H
+#define _CU_TESTER_H
+
 #include "pc_api_internal.h"
 
 #define PC_TEST(test_func) { #test_func, test_func }
@@ -14,11 +17,10 @@
 #define CU_ASSERT_SUCCESS(rv) CU_ASSERT( (rv) == PC_SUCCESS )
 #define CU_ASSERT_FAILURE(rv) CU_ASSERT( (rv) == PC_FAILURE )
 
-/* Contains the most recent error message generated by rterror. */
-char cu_error_msg[MAX_CUNIT_MSG_LENGTH+1];
-
 /* Read a file (XML) into a cstring */
 char* file_to_str(const char *fname);
 
 /* Resets cu_error_msg back to blank. */
 void cu_error_msg_reset(void);
+
+#endif
