Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
$NetBSD: patch-ac,v 1.1 2010/01/09 12:25:20 obache Exp $
Add patch-ac to avoid conflict with getline(3) defined in IEEE Std 1003.1-2008.
--- vobsub.c.orig 2003-12-08 09:28:02.000000000 +0000
+++ vobsub.c
@@ -51,12 +51,12 @@ extern int vobsub_id;
extern int verbose;
#ifdef HAVE_GETLINE
-extern ssize_t getline(char **, size_t *, FILE *);
+extern ssize_t get_line(char **, size_t *, FILE *);
#else
/* FIXME This should go into a general purpose library or even a
separate file. */
static ssize_t
-getline (char **lineptr, size_t *n, FILE *stream)
+get_line (char **lineptr, size_t *n, FILE *stream)
{
size_t res = 0;
int c;
@@ -753,7 +753,7 @@ vobsub_parse_one_line(vobsub_t *vob, FIL
do {
size_t line_reserve = 0;
char *line = NULL;
- line_size = getline(&line, &line_reserve, fd);
+ line_size = get_line(&line, &line_reserve, fd);
if (line_size < 0) {
if (line)
free(line);