Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-patch] Re: Patch: define _XOPEN_SOURCE

> 
> Tom> I needed this patch on Linux to get a prototype for ptsname.
> Tom> Without this you might be able to observe a bug on a 64-bit platform
> Tom> as ptsname will be implicitly declared to return int.  (I didn't
> Tom> actually observe such a bug here, but I recently fixed a similar one
> Tom> in the launcher...)
> 
> Argh, sorry, this is incorrect.  Defining _XOPEN_SOURCE will turn off
> some other extensions that are in use.  Instead we must define
> _GNU_SOURCE.  I'm not sure how I missed this the first time around
> :-(.  Anyway, this version causes no warnings.
> 

Thanks, applied(recompiled also).



Back to the top