pkgsrc/textproc/sary/patches/patch-sary_builder.c
taca c33baede66 textproc/sary: Fix build problem on NetBSD 8.0_RC2
* Avoid name confliction: index() and sort().
* Add including <string.h> for string functions.
* Avoid using deprecated glib function: g_strcasecmp().
2018-06-29 17:01:16 +00:00

33 lines
1 KiB
C

$NetBSD: patch-sary_builder.c,v 1.1 2018/06/29 17:01:16 taca Exp $
* Avoid name confliction.
--- sary/builder.c.orig 2005-01-28 08:50:24.000000000 +0000
+++ sary/builder.c
@@ -45,7 +45,7 @@ struct _SaryBuilder{
gpointer progress_func_data;
};
-static SaryInt index (SaryBuilder *builder,
+static SaryInt sary_index (SaryBuilder *builder,
SaryProgress *progress,
SaryWriter *writer);
static void progress_quiet (SaryProgress *progress);
@@ -124,7 +124,7 @@ sary_builder_index (SaryBuilder *builder
builder->progress_func,
builder->progress_func_data);
- count = index(builder, progress, writer);
+ count = sary_index(builder, progress, writer);
sary_progress_destroy(progress);
sary_writer_destroy(writer);
@@ -219,7 +219,7 @@ sary_builder_connect_progress (SaryBuild
}
static SaryInt
-index (SaryBuilder *builder, SaryProgress *progress, SaryWriter *writer)
+sary_index (SaryBuilder *builder, SaryProgress *progress, SaryWriter *writer)
{
gchar *bof, *cursor;
SaryInt count;