I think you can portably detect the failure case with the errno=0 method, rather than relying on #ifdef.
- Re: bug#10021: [PATCH id] Add error-checking on GNU Jim Meyering
- Re: bug#10021: [PATCH id] Add error-checking on GNU Ludovic Courtès
- Re: bug#10021: [PATCH id] Add error-checking on ... Paul Eggert
- Re: bug#10021: [PATCH id] Add error-checking... Ludovic Courtès
- Re: bug#10021: [PATCH id] Add error-chec... Alan Curry
- Re: bug#10021: [PATCH id] Add error... Ludovic Courtès
- Re: bug#10021: [PATCH id] Add error-chec... Jim Meyering
- Re: bug#10021: [PATCH id] Add error... Ludovic Courtès
- Re: bug#10021: [PATCH id] Add e... Jim Meyering
- Re: bug#10021: [PATCH id] Add error... Paul Eggert
- Re: bug#10021: [PATCH id] Add e... Roland McGrath
- Re: bug#10021: [PATCH id] Add e... Eric Blake
- Re: bug#10021: [PATCH id] Add e... Ludovic Courtès
- Re: bug#10021: [PATCH id] Add e... Paul Eggert
- Re: bug#10021: [PATCH id] Add e... Ludovic Courtès
- Re: bug#10021: [PATCH id] Add e... Paul Eggert
- Re: bug#10021: [PATCH id] Add e... Eric Blake
- Re: bug#10021: [PATCH id] Add e... Eric Blake
- Re: bug#10021: [PATCH id] Add e... Jim Meyering
- Re: bug#10021: [PATCH id] Add e... Paul Eggert
- Re: bug#10021: [PATCH id] Add e... Paul Eggert