public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] strict prototype
@ 2001-07-25 23:02 Chad Huneycutt
  0 siblings, 0 replies; only message in thread
From: Chad Huneycutt @ 2001-07-25 23:02 UTC (permalink / raw
  To: gentoo-dev

When compiling lrzsz, I get an error on a line like
extern char *strstr();

The compiler error says that this is an invalid usage of a macro (0 
arguments instead of 2).
"lrz.c:47: macro `strstr' used without args"

  The above declaration is in a #ifndef STRICT_PROTOTYPES block.  The 
first thing I tried was adding -fno-strict-prototype to the gcc command, 
but that did not do the trick.  The solution I have provided in the 
lrzsz ebuild is to comment out the #ifndef block, and that works fine, 
but I was wondering if any of you developers have a more elegant solution.

Chad




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-26  5:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-25 23:02 [gentoo-dev] strict prototype Chad Huneycutt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox