Date: Fri, 10 May 2002 23:48:22 +0200 (CEST) From: Oliver Braun <obraun@informatik.unibw-muenchen.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/37940: Fix build on -current lang/atlast Message-ID: <20020510214822.F38775A547@nemesis.informatik.unibw-muenchen.de>
next in thread | raw e-mail | index | archive | help
>Number: 37940 >Category: ports >Synopsis: Fix build on -current lang/atlast >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri May 10 15:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Oliver Braun >Release: FreeBSD 4.6-PRERELEASE i386 >Organization: >Environment: System: FreeBSD nemesis.informatik.unibw-muenchen.de 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: Thu May 2 11:59:09 CEST 2002 root@nemesis.informatik.unibw-muenchen.de:/usr/obj/usr/src/sys/NEMESIS_OB i386 >Description: Fix bento error: initializer element is not constant for stdin, stdout, stderr. Added: files/patch-atlast.c Regards, Olli >How-To-Repeat: >Fix: diff -ruN atlast.old/files/patch-atlast.c atlast/files/patch-atlast.c --- atlast.old/files/patch-atlast.c Thu Jan 1 00:00:00 1970 +++ atlast/files/patch-atlast.c Fri May 10 23:37:05 2002 @@ -0,0 +1,24 @@ +--- atlast.c.orig Fri May 10 23:18:47 2002 ++++ atlast.c Fri May 10 23:36:28 2002 +@@ -3243,14 +3243,17 @@ + { static struct { + char *sfn; + FILE *sfd; +- } stdfiles[] = { +- {"STDIN", stdin}, +- {"STDOUT", stdout}, +- {"STDERR", stderr} ++ } stdfiles[] = { ++ {"STDIN", NULL}, ++ {"STDOUT", NULL}, ++ {"STDERR", NULL} + }; + int i; + dictword *dw; + ++ stdfiles[0].sfd = stdin; ++ stdfiles[1].sfd = stdout; ++ stdfiles[2].sfd = stderr; + for (i = 0; i < ELEMENTS(stdfiles); i++) { + if ((dw = atl_vardef(stdfiles[i].sfn, + 2 * sizeof(stackitem))) != NULL) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020510214822.F38775A547>