Article View: news.software.readers
Article #4939Re: tin1.2PL1 patch for BSD-based systems
From: Leila Burrell-Davis
Date: Thu, 15 Jul 1993 11:10
Date: Thu, 15 Jul 1993 11:10
36 lines
1793 bytes
1793 bytes
Colin Perkins (csp@ohm.york.ac.uk) wrote: : There is a problem in tin1.2PL1 when building on BSD based systems, : due to the lack of a getcwd function on these machines. When doing a : "make bsd" the build fails at the link stage with an undefined symbol : _getcwd, and defining -DDONT_HAVE_GETCWD in the CCOPTS of the makefile : doesn't help. : This can be solved by changing the file misc.c as follows: [ patch deleted ] A slightly more general patch is: *** misc.c.dist Wed Jul 14 15:28:30 1993 --- misc.c Wed Jul 14 15:30:45 1993 *************** *** 1657,1663 **** --- 1657,1667 ---- char *ptr, buf[LEN]; char currentdir[PATH_LEN]; + #ifdef DONT_HAVE_GETCWD + getwd (currentdir); + #else getcwd (currentdir, sizeof (currentdir)); + #endif chdir (dir); sprintf (buf, cmd, file); #ifdef M_OS2 ----- Leila -- Leila Burrell-Davis, Computing Service, University of Sussex, Brighton, UK Tel: +44 273 678390 Fax: +44 273 678470 Email: leilabd@syma.sussex.ac.uk (JANET: leilabd@uk.ac.sussex.syma)
Technical Details
Message-ID:
<1993Jul15.111056.14780@syma.sussex.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!doc.ic.ac.uk!syma!leilabdReferences:
<1993Jul14.161530.17744@ohm.york.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <1993Jul15.111056.14780@syma.sussex.ac.uk> Subject: Re: tin1.2PL1 patch for BSD-based systems Date: Thu, 15 Jul 1993 11:10:56 GMT From: leilabd@syma.sussex.ac.uk (Leila Burrell-Davis) References: <1993Jul14.161530.17744@ohm.york.ac.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!doc.ic.ac.uk!syma!leilabd Newsgroups: news.software.readers Organization: Computing Service, University of Sussex, UK X-Newsreader: TIN [version 1.2 PL1] Lines: 36