List Info

Thread: Re: add header dependencies to libnut.h




Re: add header dependencies to libnut.h
user name
2007-01-22 12:27:14
Luca Barbato wrote:
> Clemens Ladisch wrote:
> > Luca Barbato wrote:
> >> Clemens Ladisch wrote:
> >>> libnut.h uses types like size_t, uint64_t
and off_t that are defined in
> >>> other headers.  This patch makes sure that
these headers are included.
> >>
> >> sys/types.h ??
> > 
> > off_t
> 
> unistd.h maybe?

Why would you want to use this?  sys/types.h is just as
portable (SUSv2) as
unistd.h but doesn't pull in all the other functions.


Regards,
Clemens
_______________________________________________
NUT-devel mailing list
NUT-develmplayerhq.hu

http://lists.mplayerhq.hu/mailman/listinfo/nut-devel

Re: add header dependencies to libnut.h
user name
2007-01-22 13:02:52
On Mon, Jan 22, 2007 at 07:27:14PM +0100, Clemens Ladisch
wrote:
> Luca Barbato wrote:
> > Clemens Ladisch wrote:
> > > Luca Barbato wrote:
> > >> Clemens Ladisch wrote:
> > >>> libnut.h uses types like size_t,
uint64_t and off_t that are defined in
> > >>> other headers.  This patch makes sure
that these headers are included.
> > >>
> > >> sys/types.h ??
> > > 
> > > off_t
> > 
> > unistd.h maybe?
> 
> Why would you want to use this?  sys/types.h is just as
portable (SUSv2) as
> unistd.h but doesn't pull in all the other functions.

stdlib.h and stdint.h (or inttypes.h) will give all except
off_t.
It would be nice not to depend on posix headers, just C
ones, but
onfortunately C stupidly lacks off_t. I suppose sys/types.h
is ok.

Rich
_______________________________________________
NUT-devel mailing list
NUT-develmplayerhq.hu

http://lists.mplayerhq.hu/mailman/listinfo/nut-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )