# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/tetex/hotfix-glibc.patch # Copyright (C) 2009 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- diff -Nur tetex-src-3.0-orig/texk/dvipsk/afm2tfm.c tetex-src-3.0/texk/dvipsk/afm2tfm.c --- tetex-src-3.0-orig/texk/dvipsk/afm2tfm.c 2009-08-22 00:54:14.000000000 +0000 +++ tetex-src-3.0/texk/dvipsk/afm2tfm.c 2009-08-22 01:14:07.000000000 +0000 @@ -257,7 +257,7 @@ } int -getline P1H(void) { +getLine P1H(void) { register char *p ; register int c ; @@ -606,7 +606,7 @@ ai = newchar() ; ai->adobenum = -1 ; ai->adobename = "||" ; /* boundary character name */ - while (getline()) { + while (getLine()) { switch(interest(paramstring())) { case FontName: fontname = paramnewstring() ; @@ -1882,7 +1882,7 @@ while (1) { while (param == 0 || *param == 0) { - if (getline() == 0) + if (getLine() == 0) error("! premature end in encoding file") ; for (p=buffer; *p; p++) if (*p == '%') { @@ -1973,7 +1973,7 @@ p = gettoken() ; if (strcmp(p, "]")) error("! token 258 in encoding must be make-array (])") ; - while (getline()) { + while (getLine()) { for (p=buffer; *p; p++) if (*p == '%') { if (ignoreligkern == 0) diff -Nur tetex-src-3.0-orig/texk/web2c/cpascal.h tetex-src-3.0/texk/web2c/cpascal.h --- tetex-src-3.0-orig/texk/web2c/cpascal.h 2009-08-22 00:54:14.000000000 +0000 +++ tetex-src-3.0/texk/web2c/cpascal.h 2009-08-22 01:12:32.000000000 +0000 @@ -241,6 +241,12 @@ #define getname vms_getname #endif + +#ifdef getline +#undef getline +#endif +#define getline web2c_getline + /* Declarations for the routines we provide ourselves in lib/. */ extern string basenamechangesuffix P3H(const_string,const_string,const_string);