summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2009-08-03 10:27:06 +0000
committerAlexis Ballier <aballier@gentoo.org>2009-08-03 10:27:06 +0000
commit61208ee1cda6d77f6fa2aaeff4f2f8aaf9366ba6 (patch)
tree5624045aa43c04a609f9b93497832932ecc4083c /dev-libs/pslib/files
parentold (diff)
downloadgentoo-2-61208ee1cda6d77f6fa2aaeff4f2f8aaf9366ba6.tar.gz
gentoo-2-61208ee1cda6d77f6fa2aaeff4f2f8aaf9366ba6.tar.bz2
gentoo-2-61208ee1cda6d77f6fa2aaeff4f2f8aaf9366ba6.zip
Add patch to build with glibc 2.10, by Viktor S <bugzilla@marinmo.org>, bug #277425
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/pslib/files')
-rw-r--r--dev-libs/pslib/files/pslib-getline.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-libs/pslib/files/pslib-getline.patch b/dev-libs/pslib/files/pslib-getline.patch
new file mode 100644
index 000000000000..cfe7ce4da732
--- /dev/null
+++ b/dev-libs/pslib/files/pslib-getline.patch
@@ -0,0 +1,47 @@
+--- src/ps_afm.c 2007-07-11 20:18:00.000000000 +0200
++++ src/ps_afm.c.fix 2009-07-11 14:51:05.000000000 +0200
+@@ -138,7 +138,7 @@
+ return (int)(acc>=0? floor(acc+0.5) : ceil(acc-0.5) ) ;
+ }
+
+-static int getline(FILE *afmin) {
++static int pslib_getline(FILE *afmin) {
+ char *p ;
+ int c ;
+
+@@ -616,7 +616,7 @@
+ return(-1);
+ }
+
+- while (getline(fp)) {
++ while (pslib_getline(fp)) {
+ switch(interest(paramstring())) {
+ case N:
+ handleprotusion(psdoc, metrics) ;
+@@ -664,7 +664,7 @@
+ /*
+ * Read file line by line.
+ */
+- while (getline(metric->afmin)) {
++ while (pslib_getline(metric->afmin)) {
+ switch(interest(paramstring())) {
+ case FontName:
+ metric->fontname = paramnewstring(psdoc) ;
+@@ -1039,7 +1039,7 @@
+
+ while (1) {
+ while (param == NULL || *param == '\0') {
+- if (getline(metrics->afmin) == 0)
++ if (pslib_getline(metrics->afmin) == 0)
+ ps_error(psdoc, PS_RuntimeError, _("Premature end of encoding file."));
+ for (p=buffer; *p != '\0'; p++)
+ if (*p == '%') {
+@@ -1160,7 +1160,7 @@
+ psdoc->free(psdoc, e);
+ return -1;
+ }
+- while (getline(metrics->afmin)) {
++ while (pslib_getline(metrics->afmin)) {
+ for (p=buffer; *p != '\0'; p++)
+ if (*p == '%') {
+ if (ignoreligkern == 0)