[libbdplus-devel] POSIX does not include fseeko/ftello

Thomas Klausner tk at giga.or.at
Wed Feb 18 11:06:13 CET 2015


On Wed, Feb 18, 2015 at 10:56:09AM +0100, Thomas Klausner wrote:
> On Wed, Feb 18, 2015 at 10:28:39AM +0100, Jean-Baptiste Kempf wrote:
> > On 01 Feb, Thomas Klausner wrote :
> > > According to the NetBSD man page, fseeko and ftello conform to X/Open
> > > System Interfaces and Headers Issue 5 (``XSH5''). libbdplus tries to
> > > compile with -D_POSIX_C_SOURCE=200112L, which, on NetBSD, hides X/Open
> > > symbols that are not in POSIX, like fseeko and ftello.
> > 
> > What define can we do to show them?
> 
> Is it an option to remove the define by default and only add it on Linux?
> 
> I think this will also cause problems on other operating systems like
> Solaris, which also has the policy to restrict available symbols when
> a particular namespace is requested (in contrast to Linux, which adds
> symbols when a particular namespace is requested).

Oh, another option would perhaps be to define _GNU_SOURCE which adds
symbols on Linux but is ignored everywhere else.
 Thomas


More information about the libbdplus-devel mailing list