Am Sonntag, 4. März 2007 schrieb Per Inge Mathisen:
> On 3/4/07, Dennis Schridde <[EMAIL PROTECTED]> wrote:
> > Perhaps you could point out the problems the code created on your box...
> >
> > What do you need _GNU_SOURCE for? Maybe we can replace the GNU
> > extension which caused a problem with a POSIX function... Without knowing
> > which function this is, I have no chance to do that.
>
> Without it defined the function definition for strsignal() will not be
> found. You might perhaps use psignal() instead, which is an old BSD
> thing, I believe. But then again, strsignal() might be just as
> portable for all I know. This is where I would normally recommend
> doing an autoconf check...
>
> > Why are the sys/types and sys/stat headers needed? They should be
> > included by the other headers allready... They are guarded by checks on
> > __USE_XOPEN, which is set by_XOPEN_SOURCE. Maybe defining that instead
> > could help. But I have no idea what the problem was, so I don't know how
> > to fix it, either.
>
> At least one of them was needed to find the definitions of the open()
> mode flags. I just looked in "man 2 open" and looked at the headers
> listed there, and copied in the missing ones.
Strange: The POSIX manpage (3p) says that sys/stat.h and fcntl.h is enough, 
while the Linux manpage (2) says that sys/types.h is needed additionally...

Attachment: pgpftzqFhIVI9.pgp
Description: PGP signature

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to