Make web2c build on systems with native getline().

This commit is contained in:
minskim 2009-07-17 06:55:14 +00:00
parent 8920c3a2e7
commit ac5383c118
2 changed files with 19 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.3 2009/06/09 21:32:03 minskim Exp $
$NetBSD: distinfo,v 1.4 2009/07/17 06:55:14 minskim Exp $
SHA1 (texlive-20080816-source.tar.lzma) = 730986c628bd658b5062face9e400f61203d6b8d
RMD160 (texlive-20080816-source.tar.lzma) = 629784b111c0d4bc9fac9f9131f63203d6e1dd38
@ -23,3 +23,4 @@ SHA1 (patch-aq) = 6be32b638b283924b5ff70ebd9e653f821bea3a0
SHA1 (patch-ar) = 58dcc0263b7347d7dfbf10370bcad3ed46849414
SHA1 (patch-as) = b676605ce6f599d75ef9076316f60a5679656a16
SHA1 (patch-at) = 590c83e0decf5603a75970e33d8028d794d920d2
SHA1 (patch-au) = acc255d4e4eacd960d4b9a9807ca4b0cff37d000

View file

@ -0,0 +1,17 @@
$NetBSD: patch-au,v 1.1 2009/07/17 06:55:14 minskim Exp $
--- cpascal.h.orig 2008-05-24 16:56:44.000000000 -0700
+++ cpascal.h
@@ -272,6 +272,12 @@ typedef struct option getoptstruct;
#undef getname
#define getname vms_getname
#endif
+
+#ifdef getline
+#undef getline
+#endif
+#define getline web2c_getline
+
/* Declarations for the routines we provide ourselves in lib/. */