gcc 4.7 programming question related to MythTV

Hans de Goede j.w.r.degoede at gmail.com
Sun Feb 5 15:38:50 CET 2012


Hi,

On 02/05/2012 02:20 PM, Richard Shaw wrote:
> I was trying to build the latest 0.24/fixes branch of MythTV and ran
> into an issue where many C files were using functions (usleep, write,
> close, gethostname, etc.) that were not available/(in scope?). It
> turns out that unistd.h provided these functions so I included it in
> all the offending files which allowed building to complete.
>
> Is there any reason this would be unsafe (or non-portable)? I've
> submitted a patch upstream but I'd like to get current builds out if
> there's no reason not to.

including unistd.h is the correct fix, this is necessary because
some libstdc++ headers used to include it implicitly and they
no longer do that, so now you need to include it explicitly.

Regards,

Hans


More information about the rpmfusion-developers mailing list