From 34e475de838f2b8f2e894090e5c88f22a0a00f2c Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 7 Nov 2015 22:07:15 +0000 Subject: Work around lack of access() on OpenBSD. --- chat/icb/distinfo | 4 ++-- chat/icb/patches/patch-au | 20 +++++++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/chat/icb/distinfo b/chat/icb/distinfo index 88e5fdc329c..cbb475ada48 100644 --- a/chat/icb/distinfo +++ b/chat/icb/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.16 2014/09/23 22:37:29 jperkin Exp $ +$NetBSD: distinfo,v 1.17 2015/11/07 22:07:15 dholland Exp $ SHA1 (icb-5.0.9.tar.gz) = 151430ad7fe3e9787627b31f6551bf1f398b1bd8 RMD160 (icb-5.0.9.tar.gz) = 8184620d7abf71fa38315fa14aa5345b6981c9bf @@ -23,7 +23,7 @@ SHA1 (patch-aq) = 78b772a2f6ec27a782b1681a61a2329992dcc741 SHA1 (patch-ar) = 739e982d907a5063ebd75ed080ffa5e32f9ef58a SHA1 (patch-as) = 5c42bfdc2e836fb86e814c396760040560864256 SHA1 (patch-at) = 703abcc2415b92776241011fe893286de06da034 -SHA1 (patch-au) = c67a2640e96d9670e0e0f8d0381fb1ad139e15a4 +SHA1 (patch-au) = 777c643d90df1ceb113b079a6fdebe32e4c0ed18 SHA1 (patch-av) = 65e914e11087953cdd9a9b681152ca108ba64323 SHA1 (patch-aw) = 6dbc66a63f52244ac9b8b29346cb376b98442695 SHA1 (patch-ax) = 6dc671de0abe01139fdaa193bd1c627b2d74cfb9 diff --git a/chat/icb/patches/patch-au b/chat/icb/patches/patch-au index be3a92ca328..5af63fe1767 100644 --- a/chat/icb/patches/patch-au +++ b/chat/icb/patches/patch-au @@ -1,4 +1,9 @@ -$NetBSD: patch-au,v 1.6 2013/01/11 13:24:32 joerg Exp $ +$NetBSD: patch-au,v 1.7 2015/11/07 22:07:15 dholland Exp $ + +- use standard headers +- avoid implicit int +- build if NAME_MAX is missing (old Solaris?) +- build if access() and F_OK/R_OK/etc. are missing (OpenBSD) --- icb/tcl.c.orig 1995-02-24 21:20:30.000000000 +0000 +++ icb/tcl.c @@ -47,3 +52,16 @@ $NetBSD: patch-au,v 1.6 2013/01/11 13:24:32 joerg Exp $ /* get name of file to use */ if (((rcfile = getenv("ICBRC")) != NULL) +@@ -135,10 +144,12 @@ getrcname() + } + + /* make sure the file is there */ ++#if defined(F_OK) && defined(R_OK) + if (access(rcfile, (F_OK | R_OK)) < 0) { + printf("icb: can't read rc file \"%s\".\r\n", rcfile); + return(NULL); + } ++#endif + + return rcfile; + } -- cgit v1.2.3