geo/pgpointcloud: fix for -fno-common
from https://github.com/pgpointcloud/pointcloud/pull/273
This commit is contained in:
parent
69e46dd5b8
commit
ed202d953f
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2020/11/26 07:43:33 landry Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2021/02/08 09:50:22 landry Exp $
|
||||
|
||||
COMMENT = point cloud storage extension for PostgreSQL
|
||||
|
||||
GH_TAGNAME = v1.2.1
|
||||
GH_PROJECT = pointcloud
|
||||
GH_ACCOUNT = pgpointcloud
|
||||
REVISION = 0
|
||||
|
||||
CATEGORIES = geo databases
|
||||
|
||||
|
18
geo/pgpointcloud/patches/patch-lib_cunit_cu_tester_c
Normal file
18
geo/pgpointcloud/patches/patch-lib_cunit_cu_tester_c
Normal file
@ -0,0 +1,18 @@
|
||||
$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;
|
32
geo/pgpointcloud/patches/patch-lib_cunit_cu_tester_h
Normal file
32
geo/pgpointcloud/patches/patch-lib_cunit_cu_tester_h
Normal file
@ -0,0 +1,32 @@
|
||||
$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
|
Loading…
Reference in New Issue
Block a user