diff options
author | tron <tron> | 2011-01-15 17:46:01 +0000 |
---|---|---|
committer | tron <tron> | 2011-01-15 17:46:01 +0000 |
commit | 33b48ff435da1860b0c3a013d5e4e273a1c2aeda (patch) | |
tree | 088201430bb5b718269c2c4f7fa76b20c0ba6a53 /archivers/star/patches | |
parent | 3440dee313674d8416e755bcf608318b515e264e (diff) | |
download | pkgsrc-33b48ff435da1860b0c3a013d5e4e273a1c2aeda.tar.gz |
Fix build under NetBSD-currenty removing unused custom function "getline"
which conflicts with getline(3).
Diffstat (limited to 'archivers/star/patches')
-rw-r--r-- | archivers/star/patches/patch-ae | 15 | ||||
-rw-r--r-- | archivers/star/patches/patch-af | 19 |
2 files changed, 34 insertions, 0 deletions
diff --git a/archivers/star/patches/patch-ae b/archivers/star/patches/patch-ae new file mode 100644 index 00000000000..4b778078494 --- /dev/null +++ b/archivers/star/patches/patch-ae @@ -0,0 +1,15 @@ +$NetBSD: patch-ae,v 1.1 2011/01/15 17:46:01 tron Exp $ + +Remove unused custom function "getline" which conflicts with getline(3) +which is part of the POSIX standard. + +--- include/schily.h.orig 2002-12-24 18:28:01.000000000 +0000 ++++ include/schily.h 2011-01-15 17:41:23.000000000 +0000 +@@ -183,7 +183,6 @@ + extern char *findbytes __PR((const void *, int, char)); + extern int findline __PR((const char *, char, const char *, + int, char **, int)); +-extern int getline __PR((char *, int)); + extern int getstr __PR((char *, int)); + extern int breakline __PR((char *, char, char **, int)); + extern int getallargs __PR((int *, char * const**, const char *, ...)); diff --git a/archivers/star/patches/patch-af b/archivers/star/patches/patch-af new file mode 100644 index 00000000000..f2467424791 --- /dev/null +++ b/archivers/star/patches/patch-af @@ -0,0 +1,19 @@ +$NetBSD: patch-af,v 1.1 2011/01/15 17:46:01 tron Exp $ + +Remove unused custom function "getline" which conflicts with getline(3) +which is part of the POSIX standard. + +--- lib/stdio/fgetline.c.orig 2000-12-03 11:19:29.000000000 +0000 ++++ lib/stdio/fgetline.c 2011-01-15 17:42:18.000000000 +0000 +@@ -62,11 +62,3 @@ + + return (bp - buf); + } +- +-EXPORT int +-getline(buf, len) +- char *buf; +- int len; +-{ +- return (fgetline(stdin, buf, len)); +-} |