diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-09-20 19:48:00 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-09-20 19:48:00 +0000 |
commit | a51402241e3635ad74fb76f43651f4e50f44f59b (patch) | |
tree | 5fe7ce16ab03eaa409312e06c6bd81fc103657e9 /textproc/groff | |
parent | 0339490e63f7a4ddcf27abeb5371bd01b682ad0b (diff) | |
download | ports-a51402241e3635ad74fb76f43651f4e50f44f59b.tar.gz ports-a51402241e3635ad74fb76f43651f4e50f44f59b.zip |
Fix groff build with libc++ 9.0.0
Because libc++ 9.0.0 now includes <math.h> from <stdlib.h>, groff fails
to build with an error similar to:
In file included from src/libs/libgroff/assert.cpp:20:
In file included from /usr/include/c++/v1/stdlib.h:100:
./lib/math.h:38:3: error: "Please include config.h first."
#error "Please include config.h first."
^
./lib/math.h:40:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN'
_GL_INLINE_HEADER_BEGIN
^
Fix this in the least intrusive way, by simply including config.h
instead of emitting an error message.
Approved by: bapt (maintainer)
PR: 240701
MFH: 2019Q3
Notes
Notes:
svn path=/head/; revision=512436
Diffstat (limited to 'textproc/groff')
-rw-r--r-- | textproc/groff/files/patch-lib_math.in.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/groff/files/patch-lib_math.in.h b/textproc/groff/files/patch-lib_math.in.h new file mode 100644 index 000000000000..b5e2d6a81837 --- /dev/null +++ b/textproc/groff/files/patch-lib_math.in.h @@ -0,0 +1,11 @@ +--- lib/math.in.h.orig 2018-12-23 14:34:15 UTC ++++ lib/math.in.h +@@ -34,7 +34,7 @@ + #endif + + #ifndef _GL_INLINE_HEADER_BEGIN +- #error "Please include config.h first." ++# include "config.h" + #endif + _GL_INLINE_HEADER_BEGIN + #ifndef _GL_MATH_INLINE |