Date: Mon, 18 Nov 2002 16:10:02 -0800 (PST) From: Edwin Groothuis <edwin@mavetju.org> To: freebsd-bugs@FreeBSD.org Subject: i386/41930: declaration clash for ffs() and ${CXX} Message-ID: <200211190010.gAJ0A2hv077715@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/41930; it has been noted by GNATS. From: Edwin Groothuis <edwin@mavetju.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211190010.gAJ0A2hv077715>