diff --git a/groff/1.22.4.patch b/groff/1.22.4.patch new file mode 100644 index 00000000..5d208429 --- /dev/null +++ b/groff/1.22.4.patch @@ -0,0 +1,139 @@ +--- a/src/libs/libgroff/assert.cpp ++++ b/src/libs/libgroff/assert.cpp +@@ -16,6 +16,10 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ + #include + #include + #include "assert.h" +--- a/src/libs/libgroff/errarg.cpp ++++ b/src/libs/libgroff/errarg.cpp +@@ -17,6 +17,10 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ + #include + #include "assert.h" + #include "errarg.h" +--- a/src/libs/libgroff/error.cpp ++++ b/src/libs/libgroff/error.cpp +@@ -17,6 +17,10 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ + #include + #include + #include +--- a/src/preproc/eqn/eqn.ypp ++++ b/src/preproc/eqn/eqn.ypp +@@ -16,6 +16,10 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + %{ ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ + #include + #include + #include +--- a/src/libs/libgroff/curtime.cpp ++++ b/src/libs/libgroff/curtime.cpp +@@ -15,6 +15,10 @@ + The GNU General Public License version 2 (GPL2) is available in the + internet at . */ + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ + #include + #include + #include +--- a/src/libs/libgroff/device.cpp ++++ b/src/libs/libgroff/device.cpp +@@ -17,6 +17,7 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#include "config.h" + #include + #include "device.h" + #include "defs.h" +--- a/src/libs/libgroff/fatal.cpp ++++ b/src/libs/libgroff/fatal.cpp +@@ -16,6 +16,7 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#include "config.h" + #include + + #define FATAL_ERROR_EXIT_CODE 3 +--- a/src/libs/libgroff/string.cpp ++++ b/src/libs/libgroff/string.cpp +@@ -17,6 +17,10 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ + #include + + #include "lib.h" +--- a/src/libs/libgroff/strsave.cpp ++++ b/src/libs/libgroff/strsave.cpp +@@ -17,6 +17,7 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#include "config.h" + #include + #include + +--- a/src/preproc/eqn/text.cpp ++++ b/src/preproc/eqn/text.cpp +@@ -17,6 +17,7 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#include "config.h" + #include + #include + #include "eqn.h" +--- a/src/preproc/eqn/other.cpp ++++ b/src/preproc/eqn/other.cpp +@@ -17,6 +17,7 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#include "config.h" + #include + + #include "eqn.h" +--- a/src/preproc/pic/object.cpp ++++ b/src/preproc/pic/object.cpp +@@ -17,6 +17,8 @@ for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + ++#include "config.h" ++ + #include + + #include "pic.h"