openbsd-ports/databases/gq/patches/patch-intl_dcigettext_c
jasper 33b462f0c0 - regen WANTLIB
- install .desktop file where it should
- add missing goo and dependency
- get rid of implicit declaration warnings
- add missing rcs id's to several patches

ok mbalmer@ (MAINTAINER), sthen@
2009-01-26 18:17:25 +00:00

25 lines
709 B
Plaintext

$OpenBSD: patch-intl_dcigettext_c,v 1.3 2009/01/26 18:17:25 jasper Exp $
--- intl/dcigettext.c.orig Sat May 4 18:10:13 2002
+++ intl/dcigettext.c Sun Oct 12 17:01:58 2008
@@ -57,11 +57,6 @@ extern int errno;
#include <stdlib.h>
#include <string.h>
-#if !HAVE_STRCHR && !defined _LIBC
-# ifndef strchr
-# define strchr index
-# endif
-#endif
#if defined HAVE_UNISTD_H || defined _LIBC
# include <unistd.h>
@@ -868,7 +863,7 @@ _nl_find_msg (domain_file, domainbinding, msgid, lengt
outleft = freemem_size - sizeof (size_t);
if (iconv (domain->conv,
- (ICONV_CONST char **) &inptr, &inleft,
+ (const char **) &inptr, &inleft,
&outptr, &outleft)
!= (size_t) (-1))
{