From: Jarkko Hietaniemi Date: Tue, 2 Feb 1999 20:38:45 +0000 (+0000) Subject: telldir prototype issue, from mists of time... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=968dcd912296607f6d74dceeeccc670bbe106928;p=p5sagit%2Fp5-mst-13.2.git telldir prototype issue, from mists of time... p4raw-id: //depot/cfgperl@2803 --- diff --git a/hints/netbsd.sh b/hints/netbsd.sh index 6ca0218..a07d372 100644 --- a/hints/netbsd.sh +++ b/hints/netbsd.sh @@ -63,10 +63,6 @@ case "$usevfork" in '') usevfork=true ;; esac -# Avoid telldir prototype conflict in pp_sys.c (NetBSD uses const DIR *) -# Configure should test for this. Volunteers? -pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"' - # Pre-empt the /usr/bin/perl question of installperl. installusrbinperl='n' diff --git a/pp_sys.c b/pp_sys.c index 538fb68..a35a206 100644 --- a/pp_sys.c +++ b/pp_sys.c @@ -3276,7 +3276,11 @@ PP(pp_telldir) { djSP; dTARGET; #if defined(HAS_TELLDIR) || defined(telldir) -# ifdef NEED_TELLDIR_PROTO /* XXX does _anyone_ need this? --AD 2/20/1998 */ + /* XXX does _anyone_ need this? --AD 2/20/1998 */ + /* XXX netbsd still seemed to. + XXX HAS_TELLDIR_PROTO is new style, NEED_TELLDIR_PROTO is old style. + --JHI 1999-Feb-02 */ +# if !defined(HAS_TELLDIR_PROTO) || defined(NEED_TELLDIR_PROTO) long telldir _((DIR *)); # endif GV *gv = (GV*)POPs;