openbsd-ports/devel/doc++/patches/patch-configure
naddy 634f92e151 Fix libintl detection. The old AM_GNU_GETTEXT macro doesn't work with
C++ on LP64 archs, so use code snippet from a later version.
Debugged by nigel@
2014-01-21 21:33:15 +00:00

22 lines
587 B
Plaintext

$OpenBSD: patch-configure,v 1.2 2014/01/21 21:33:15 naddy Exp $
--- configure.orig Sun Dec 22 16:39:27 2002
+++ configure Tue Jan 21 22:18:39 2014
@@ -7930,7 +7930,7 @@ int
main ()
{
bindtextdomain ("", "");
-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
+return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ()
;
return 0;
}
@@ -7976,7 +7976,7 @@ int
main ()
{
bindtextdomain ("", "");
-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
+return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ()
;
return 0;
}