From owner-freebsd-ports Sun Aug 5 15:54:49 2001 Delivered-To: freebsd-ports@freebsd.org Received: from apollo.orakel.ntnu.no (apollo.orakel.ntnu.no [129.241.56.245]) by hub.freebsd.org (Postfix) with SMTP id D80A437B401 for ; Sun, 5 Aug 2001 15:54:44 -0700 (PDT) (envelope-from kjetilod@orakel.ntnu.no) Received: (qmail 2717 invoked by uid 21496); 5 Aug 2001 22:54:37 -0000 Date: Mon, 6 Aug 2001 00:54:37 +0200 From: =?iso-8859-1?Q?Kjetil_=D8degaard?= To: ports@FreeBSD.org Subject: Patch: audio/mp3asm Message-ID: <20010806005437.A2668@orakel.ntnu.no> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline 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 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The mp3asm port is broken; src/mp3asm.c defines getprogname(), which conflicts with a declaration in stdlib.h. Putting the attached patch in the 'files' directory of the port fixes the problem. -- Kjetil --IJpNTDwzlM2Ie8A6 Content-Type: text/x-csrc; charset=us-ascii Content-Disposition: attachment; filename="patch-src::mp3asm.c" --- src/mp3asm.c.orig Mon Aug 6 00:25:01 2001 +++ src/mp3asm.c Thu Apr 12 06:16:24 2001 @@ -54,12 +54,12 @@ output_t *output; /* + * xgetprogname: sets me to be the name of the executable. - * getprogname: sets me to be the name of the executable. * */ char * +xgetprogname(const char *argv0) -getprogname(const char *argv0) { char *string; (string = strrchr(argv0, '/')) ? string++ : (string = (char *)argv0); @@ -200,7 +200,7 @@ int main(int argc, char *argv[]) { + init_global (xgetprogname(argv[0])); - init_global (getprogname(argv[0])); parse_args (argc, argv); --IJpNTDwzlM2Ie8A6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message