Fix build with NLS disabled

Reported by:	adamw
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-10-27 09:59:25 +00:00
parent 87d08088ca
commit d9e09720c0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=515761
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- tp/Texinfo/XS/parsetexi/api.c.orig 2019-08-25 17:11:45 UTC
+++ tp/Texinfo/XS/parsetexi/api.c
@@ -25,7 +25,9 @@
#undef context
+#if defined(HAVE_LIBINTL_H)
#include <libintl.h>
+#endif
#include <stdlib.h>
#include <stdio.h>

View File

@ -0,0 +1,12 @@
--- tp/Texinfo/XS/parsetexi/errors.c.orig 2019-08-25 17:11:45 UTC
+++ tp/Texinfo/XS/parsetexi/errors.c
@@ -14,7 +14,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <config.h>
+#if defined(HAVE_LIBINTL_H)
#include <libintl.h>
+#endif
#include <stdlib.h>
#include <stdarg.h>