* Error codes
@ 2013-10-24 10:34 Paul Schutte
2013-10-24 14:21 ` Rich Felker
0 siblings, 1 reply; 3+ messages in thread
From: Paul Schutte @ 2013-10-24 10:34 UTC (permalink / raw)
To: musl
[-- Attachment #1: Type: text/plain, Size: 348 bytes --]
Hi,
I am trying to compile a program that uses rename.
I get the following error:
error: 'EXDEV' undeclared (first use in this function)
It looks like this is defined in bits/errno.h
My question therefore is whether I should modify the program to include
<errno.h> or should <bits/errno.h> be included by <stdio.h> as standard ?
Regards
Paul
[-- Attachment #2: Type: text/html, Size: 544 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error codes
2013-10-24 10:34 Error codes Paul Schutte
@ 2013-10-24 14:21 ` Rich Felker
2013-10-24 14:28 ` Paul Schutte
0 siblings, 1 reply; 3+ messages in thread
From: Rich Felker @ 2013-10-24 14:21 UTC (permalink / raw)
To: musl
On Thu, Oct 24, 2013 at 12:34:53PM +0200, Paul Schutte wrote:
> Hi,
>
> I am trying to compile a program that uses rename.
>
> I get the following error:
>
> error: 'EXDEV' undeclared (first use in this function)
>
> It looks like this is defined in bits/errno.h
>
> My question therefore is whether I should modify the program to include
> <errno.h> or should <bits/errno.h> be included by <stdio.h> as standard ?
The program should be including <errno.h>.
Rich
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error codes
2013-10-24 14:21 ` Rich Felker
@ 2013-10-24 14:28 ` Paul Schutte
0 siblings, 0 replies; 3+ messages in thread
From: Paul Schutte @ 2013-10-24 14:28 UTC (permalink / raw)
To: musl
[-- Attachment #1: Type: text/plain, Size: 581 bytes --]
Thanks
On Thu, Oct 24, 2013 at 4:21 PM, Rich Felker <dalias@aerifal.cx> wrote:
> On Thu, Oct 24, 2013 at 12:34:53PM +0200, Paul Schutte wrote:
> > Hi,
> >
> > I am trying to compile a program that uses rename.
> >
> > I get the following error:
> >
> > error: 'EXDEV' undeclared (first use in this function)
> >
> > It looks like this is defined in bits/errno.h
> >
> > My question therefore is whether I should modify the program to include
> > <errno.h> or should <bits/errno.h> be included by <stdio.h> as standard ?
>
> The program should be including <errno.h>.
>
> Rich
>
[-- Attachment #2: Type: text/html, Size: 1039 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-24 14:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-24 10:34 Error codes Paul Schutte
2013-10-24 14:21 ` Rich Felker
2013-10-24 14:28 ` Paul Schutte
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).