diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-08-30 21:06:10 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-08-30 21:06:10 +0000 |
commit | efde936cf424db48520f84d50b28d8f7e4b40049 (patch) | |
tree | 11df6441d6b658470ee0c7319722fe5592ea2aff /math/reduce | |
parent | games/abstreet: Update 0.2.3-16 -> 0.2.9-49 (diff) |
math/reduce: fix the build with LLVM 11
reduce started to fail with the default switch to -fno-common in LLVM 11
(and GCC 10). This patch was written then confirmed to be the fix that
upstream also provided in late March.
MFH: 2020Q3 (-fno-common build fix)
Notes
Notes:
svn path=/head/; revision=547124
Diffstat (limited to 'math/reduce')
-rw-r--r-- | math/reduce/files/patch-generic_newfront_redfront.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/math/reduce/files/patch-generic_newfront_redfront.h b/math/reduce/files/patch-generic_newfront_redfront.h index 49428f210f5e..5678178e960d 100644 --- a/math/reduce/files/patch-generic_newfront_redfront.h +++ b/math/reduce/files/patch-generic_newfront_redfront.h @@ -12,3 +12,14 @@ #include "chartype.h" #endif +@@ -133,8 +133,8 @@ extern int wcwidth(wchar_t c); + #define HANDLE_T int + #endif + +-HANDLE_T MeToReduce[2]; +-HANDLE_T ReduceToMe[2]; ++extern HANDLE_T MeToReduce[2]; ++extern HANDLE_T ReduceToMe[2]; + extern int redread(HANDLE_T h, void *buffer, int len); + extern int redwrite(HANDLE_T h, void *buffer, int len); + extern void redclose(HANDLE_T h); |