From owner-freebsd-ports Sat Oct 26 17:53: 7 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06D8037B406 for ; Sat, 26 Oct 2002 17:53:06 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-165-226-88.dsl.lsan03.pacbell.net [64.165.226.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C9DF43E42 for ; Sat, 26 Oct 2002 17:53:05 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 9D00866E0A; Sat, 26 Oct 2002 17:53:04 -0700 (PDT) Date: Sat, 26 Oct 2002 17:53:04 -0700 From: Kris Kennaway To: Steve Kargl Cc: freebsd-ports@freebsd.org Subject: Re: FILE *in = stdin problem in FreeBSD-current. Message-ID: <20021027005304.GB16148@xor.obsecurity.org> References: <20021026163320.GA28436@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eAbsdosE1cNLO4uF" Content-Disposition: inline In-Reply-To: <20021026163320.GA28436@troutmask.apl.washington.edu> User-Agent: Mutt/1.4i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --eAbsdosE1cNLO4uF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 26, 2002 at 09:33:20AM -0700, Steve Kargl wrote: > Line 36 of dec10io.usr is "FILE *input=3Dstdin;". =20 > stdio.h is properly included in the source where we have >=20 > extern FILE *__stdinp; > #define stdin __stdinp >=20 > How is handled? You need to initialize the variable at runtime, not statically. If the program contains main() you can do it then; if it's a library I don't know a good way to fix it. Kris --eAbsdosE1cNLO4uF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9uzjwWry0BWjoQKURAvH+AJ0d8+tTDuVBpAhDps/ftC9OEsmIwwCgiIai yQJOfOJG63CRumGeetfRwKA= =OEDr -----END PGP SIGNATURE----- --eAbsdosE1cNLO4uF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message