From owner-freebsd-bugs Mon Nov 18 16:10: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4442437B401 for ; Mon, 18 Nov 2002 16:10:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0155543E6E for ; Mon, 18 Nov 2002 16:10:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAJ0A2x3077716 for ; Mon, 18 Nov 2002 16:10:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAJ0A2hv077715; Mon, 18 Nov 2002 16:10:02 -0800 (PST) Date: Mon, 18 Nov 2002 16:10:02 -0800 (PST) Message-Id: <200211190010.gAJ0A2hv077715@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Edwin Groothuis Subject: i386/41930: declaration clash for ffs() and ${CXX} Reply-To: Edwin Groothuis Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/41930; it has been noted by GNATS. From: Edwin Groothuis To: freebsd-gnats-submit@FreeBSD.org, corecode@corecode.ath.cx Cc: Subject: i386/41930: declaration clash for ffs() and ${CXX} Date: Tue, 19 Nov 2002 11:01:56 +1100 I ran into the same problem today with ports/audio/mpmf20. machine/cpufunc.h does set a flag if it has has been processed: HAVE_INLINE_FFS (line 106 of /usr/include/machine/cpufunc.h). So strings.h could be modified to: __BEGIN_DECLS int bcmp(const void *, const void *, size_t); /* LEGACY */ void bcopy(const void *, void *, size_t); /* LEGACY */ void bzero(void *, size_t); /* LEGACY */ +#ifndef HAVE_INLINE_FFS int ffs(int); +#endif char *index(const char *, int); /* LEGACY */ char *rindex(const char *, int); /* LEGACY */ int strcasecmp(const char *, const char *); int strncasecmp(const char *, const char *, size_t); __END_DECLS Show stopper? Not really. Annoying? Yes. Worth fixing? YES! Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php bash$ :(){ :|:&};: | Interested in MUDs? http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message